40 lines (34 loc) · 900 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
39
40
name: CI
on:
push:
branches: [main]
pull_request:
paths:
- "**.js"
- "package.json"
- ".github/workflows/ci.yml"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node: ["12.20.0", "14.13.1", "16.0.0"]
exclude:
# On Windows, run tests with only the LTS environments.
- os: windows-latest
node: "12.22.3"
- os: windows-latest
node: "16.0.0"
# On macOS, run tests with only the LTS environments.
- os: macOS-latest
node: "12.22.3"
- os: macOS-latest
node: "16.0.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test -- --colors