Regression checks #78
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: Regression checks | |
on: | |
push: | |
branches: | |
- '**' | |
schedule: # Weekly runs to pick up on bitrot | |
- cron: '37 23 * * 0' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
checks: | |
name: Checks | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [9.11.2, lts/*, latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup nodejs ${{matrix.node-version}} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{matrix.node-version}} | |
cache: 'npm' | |
- name: Install packages | |
run: npm ci || npm install # 9.11.2 doesn't grok "ci" | |
- name: Syntax check | |
run: npm run check | |
- name: Regression tests | |
run: npm run test | |
- name: Package audit | |
if: matrix.node-version == 'latest' | |
run: npm audit |