Debian Codegraph @

miniget/.github/workflows/nodejs.yml

raw
1 name: Node CI
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }}
8 runs-on: ${{ matrix.os }}
9 strategy:
10 matrix:
11 node-version: [12.x, 14.x, 16.x]
12 os: [ubuntu-latest]
13
14 steps:
15 - uses: actions/checkout@v1
16
17 - name: Use Node.js ${{ matrix.node-version }}
18 uses: actions/setup-node@v1
19 with:
20 node-version: ${{ matrix.node-version }}
21
22 - name: npm install, build, and test
23 run: |
24 npm install
25 npm run build --if-present
26 npm test
27
28 - uses: codecov/[email protected]
29 with:
30 token: ${{ secrets.CODECOV_TOKEN }}