Skip to content

Commit fe46da0

Browse files
committed
Tweak CI config
1 parent 72c6d9f commit fe46da0

File tree

1 file changed

+23
-45
lines changed

1 file changed

+23
-45
lines changed

Diff for: .github/workflows/test.yml

+23-45
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,28 @@
1-
name: test
2-
1+
name: CI
32
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
10-
3+
- push
4+
- pull_request
115
jobs:
12-
linux:
13-
runs-on: ubuntu-latest
14-
6+
test:
7+
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
8+
runs-on: ${{ matrix.os }}
159
strategy:
1610
matrix:
17-
node-version: [10.x, 12.x, 14.x]
18-
11+
node-version:
12+
- 14
13+
- 12
14+
- 10
15+
os:
16+
- ubuntu-latest
17+
- macos-latest
1918
steps:
20-
- uses: actions/checkout@v2
21-
- name: Install dependencies
22-
run: sudo apt-get install nasm
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm install
28-
- run: npm test
29-
env:
30-
CI: true
31-
32-
macos:
33-
runs-on: macos-latest
34-
35-
strategy:
36-
matrix:
37-
node-version: [10.x, 12.x, 14.x]
38-
39-
steps:
40-
- uses: actions/checkout@v2
41-
- name: Install dependencies
42-
run: brew install automake nasm
43-
- name: Use Node.js ${{ matrix.node-version }}
44-
uses: actions/setup-node@v1
45-
with:
46-
node-version: ${{ matrix.node-version }}
47-
- run: npm install
48-
- run: npm test
49-
env:
50-
CI: true
19+
- uses: actions/checkout@v2
20+
- if: contains(matrix.os, 'ubuntu')
21+
run: sudo apt-get install nasm
22+
- if: contains(matrix.os, 'macos')
23+
run: brew install automake nasm
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm install
28+
- run: npm test

0 commit comments

Comments
 (0)