Debian Codegraph @

jridgewell-gen-mapping/.github/workflows/test.yml

raw
1 name: Node CI
2
3 on: [push]
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8
9 strategy:
10 matrix:
11 latest-node-version: [16.x]
12 node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x]
13
14 steps:
15 - uses: actions/checkout@v1
16 - name: Build with Node.js ${{ matrix.latest-node-version }}
17 uses: actions/setup-node@v1
18 with:
19 node-version: ${{ matrix.latest-node-version }}
20 - name: Build and test with latest
21 run: |
22 npm install
23 npm run build
24 npm run test:coverage
25 - name: Switch to Node.js ${{ matrix.node-version }}
26 uses: actions/setup-node@v1
27 with:
28 node-version: ${{ matrix.node-version }}
29 - name: Test legacy node
30 run: |
31 npm install [email protected]
32 npm run test:only
33 env:
34 CI: true