| 1 |
name: CI tests |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- master |
| 7 |
- develop |
| 8 |
- release* |
| 9 |
pull_request: |
| 10 |
workflow_dispatch: |
| 11 |
|
| 12 |
jobs: |
| 13 |
test: |
| 14 |
name: Run tests |
| 15 |
runs-on: ubuntu-latest |
| 16 |
strategy: |
| 17 |
matrix: |
| 18 |
|
| 19 |
node-version: |
| 20 |
- latest |
| 21 |
- lts/* |
| 22 |
- lts/-1 |
| 23 |
- lts/-2 |
| 24 |
|
| 25 |
steps: |
| 26 |
- uses: actions/checkout@v4 |
| 27 |
|
| 28 |
- name: Use Node.js ${{ matrix.node-version }} |
| 29 |
uses: actions/setup-node@v4 |
| 30 |
with: |
| 31 |
node-version: ${{ matrix.node-version }} |
| 32 |
cache: npm |
| 33 |
|
| 34 |
- name: Install dependencies |
| 35 |
run: npm ci |
| 36 |
|
| 37 |
- name: Run tests |
| 38 |
run: npm test |