build(ci): upgrade actions to latest and test on Node 16, 18 and 20 #37
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: 'Continuous Integration' | |
on: | |
push: | |
pull_request: | |
jobs: | |
unit-tests: | |
name: Unit tests and Coverage (Node ${{ matrix.node }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: | |
- 16 | |
- 18 | |
- 20 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: npm ci | |
- run: npm run test:coverage | |
lint-typecheck: | |
name: 'Lint and TypeCheck' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run typecheck |