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

21 lines
480 B
YAML
Raw Normal View History

2022-12-03 13:08:49 +03:00
name: Node CI
on: [push, pull_request]
jobs:
test:
2023-05-02 05:59:54 +03:00
name: 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:
node-version: [16.x, 18.x, 20.x]
2022-12-03 13:08:49 +03:00
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
2023-05-02 05:59:54 +03:00
node-version: ${{ matrix.node-version }}
2022-12-03 13:08:49 +03:00
- run: npm install
- run: npm run build --if-present
- run: npm run lint --if-present
2022-12-28 09:32:27 +03:00
- run: npm test