Extract toc #2211
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: | |
branches: [master] | |
pull_request: | |
branches: ['**'] | |
jobs: | |
test: | |
name: Node v${{ matrix.node-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
os: ${{ matrix.os }} | |
cache: 'npm' | |
- name: Install packages for project | |
run: npm ci | |
- run: npm run build | |
- name: Install packages for tests | |
run: | | |
cd tests | |
npm ci | |
- name: Run tests | |
run: | | |
cd tests | |
npm run test |