File tree 1 file changed +23
-45
lines changed
1 file changed +23
-45
lines changed Original file line number Diff line number Diff line change 1
- name : test
2
-
1
+ name : CI
3
2
on :
4
- push :
5
- branches :
6
- - master
7
- pull_request :
8
- branches :
9
- - master
10
-
3
+ - push
4
+ - pull_request
11
5
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 }}
15
9
strategy :
16
10
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
19
18
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
You can’t perform that action at this time.
0 commit comments