-
-
Notifications
You must be signed in to change notification settings - Fork 87
38 lines (33 loc) · 891 Bytes
/
CI.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
35
36
37
38
name: CI
on:
push: {}
pull_request: {}
jobs:
main:
strategy:
matrix:
eslint: [7, 8]
node: [10.12, 10, 12.0, 12, 14, 16]
exclude:
- eslint: 8
node: 10
- eslint: 8
node: 10.12
runs-on: ubuntu-latest
steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.0
- name: ⬇️ Checkout repo
uses: actions/checkout@v2
- name: ⎔ Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: 📥 Download dependencies
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 📥 Install ESLint v${{ matrix.eslint }}
run: npm install eslint@${{ matrix.eslint }}
- name: ▶️ Run test script
run: npm run test -- --runInBand