2021-06-29 14:19:24 +01:00
|
|
|
name: Run tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-06-29 14:25:22 +01:00
|
|
|
branches: [ master, dev ]
|
2021-06-29 14:19:24 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master, dev ]
|
|
|
|
|
2022-10-02 11:16:13 -07:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-06-29 14:19:24 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-02 11:16:13 -07:00
|
|
|
permissions:
|
|
|
|
contents: read # for actions/checkout to fetch code
|
2021-06-29 14:19:24 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-09-17 14:23:43 +01:00
|
|
|
node-version: [18, 20, 22]
|
2021-06-29 14:19:24 +01:00
|
|
|
steps:
|
2023-09-05 13:50:59 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-06-29 14:19:24 +01:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2023-11-01 07:42:43 +00:00
|
|
|
uses: actions/setup-node@v4
|
2021-06-29 14:19:24 +01:00
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
npm run test
|