-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 848 Bytes
/
checks.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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