1 | name: 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: [12.x, 14.x, 16.x]
|
12 |
|
13 | steps:
|
14 | - uses: actions/checkout@v1
|
15 |
|
16 | - name: Use Node.js
|
17 | uses: actions/setup-node@v1
|
18 | with:
|
19 | node-version: ${{ matrix.node-version }}
|
20 |
|
21 | - name: Install
|
22 | run: |
|
23 | npm install
|
24 |
|
25 | - name: Run tests
|
26 | run: |
|
27 | npm run ci
|
28 |
|
\ | No newline at end of file |