add package.json prettier script, alias format script to prettier scr… #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
token: ${{ secrets.ACCESS_TOKEN }} | |
- name: Use Node.js latest | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 17 | |
- name: npm install, build, and test | |
# Note, we run bench and cov just to make sure they run successfully, but we're not doing anything with the result yet. | |
run: | | |
npm install | |
npm run build | |
npm run doc | |
npm run bench | |
npm test | |
npm run cov | |
env: | |
CI: true |