forked from tornado-packages/noble-curves
24 lines
598 B
YAML
24 lines
598 B
YAML
name: Node CI
|
|
on:
|
|
- push
|
|
- pull_request
|
|
jobs:
|
|
test:
|
|
name: v${{ matrix.node }} @ ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node:
|
|
- 18
|
|
- 20
|
|
steps:
|
|
- 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
|