chore: add node 22 and 23 to ci, drop npm and nodejs upper version co… #30
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: | |
pull_request: | |
push: | |
permissions: read-all | |
jobs: | |
unit-tests: | |
runs-on: ubuntu-latest | |
permissions: read-all | |
strategy: | |
fail-fast: true | |
matrix: | |
nodejs: ['12', '14', '16', '18', '20', '21', '22', '23'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.nodejs }} | |
- run: npm ci | |
- name: Lint code | |
run: npm run lint | |
- name: Test | |
run: npm run test:ci | |
- name: Attempt browser build | |
run: npm run build:browser |