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