Debian Codegraph @

scope-analyzer/.github/workflows/ci.yml

raw
1 name: Node CI
2
3 on: [push, pull_request]
4
5 jobs:
6 test:
7 runs-on: ubuntu-latest
8
9 strategy:
10 matrix:
11 node-version: ['0.10', '0.12', 4.x, 6.x, 8.x, 10.x, 12.x, 14.x, 16.x]
12
13 steps:
14 - uses: actions/checkout@v2
15 - name: Use Node.js ${{ matrix.node-version }}
16 uses: actions/setup-node@v2
17 with:
18 node-version: ${{ matrix.node-version }}
19 - name: npm install
20 run: npm install
21 - name: npm test
22 run: npm run tests-only
23
24 lint:
25 runs-on: ubuntu-latest
26
27 steps:
28 - uses: actions/checkout@v2
29 - name: Use Node.js 16.x
30 uses: actions/setup-node@v2
31 with:
32 node-version: 16.x
33 - name: npm install
34 run: npm install
35 - name: npm run lint
36 run: npm run lint