badgen/.github/workflows/nodejs.yml

27 wiersze
503 B
YAML
Czysty Zwykły widok Historia

2019-08-24 04:05:03 +00:00
name: Node CI
on: [push]
jobs:
test:
strategy:
matrix:
2022-04-30 09:06:55 +00:00
node: [12, 14, 16, 18]
2019-08-24 04:05:03 +00:00
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: use Node.js ${{ matrix.node }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Run npm ci
run: npm ci
- name: Run npm build
run: npm run build --ifpresent
- name: Run npm test
run: npm test