noble-curves/.github/workflows/nodejs.yml

24 lines
608 B
YAML
Raw Normal View History

2024-03-17 16:19:18 +03:00
name: Run node.js tests
2024-02-14 04:10:37 +03:00
on:
- push
- pull_request
2022-12-03 13:08:49 +03:00
jobs:
test:
2023-05-05 04:53:35 +03:00
name: v${{ matrix.node }} @ ubuntu-latest
2022-12-03 13:08:49 +03:00
runs-on: ubuntu-latest
2023-05-02 05:59:54 +03:00
strategy:
matrix:
2024-02-14 04:10:37 +03:00
node:
- 18
- 20
2022-12-03 13:08:49 +03:00
steps:
2024-02-14 04:10:37 +03:00
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build --if-present
- run: npm test
- run: npm run lint --if-present