@@ -2,16 +2,18 @@ name: ci
2
2
3
3
on :
4
4
push :
5
- branches : [$default-branch]
5
+ branches :
6
+ - master
6
7
pull_request :
7
- branches : [$default-branch]
8
+ branches :
9
+ - master
8
10
9
11
jobs :
10
12
build :
11
- runs-on : ubuntu-18 .04
13
+ runs-on : ubuntu-22 .04
12
14
strategy :
13
15
matrix :
14
- node-version : [14.x, 16.x, 17.x, 18.x]
16
+ node-version : [14.x, 16.x, 18.x]
15
17
steps :
16
18
- uses : actions/checkout@v2
17
19
- name : Use Node.js ${{ matrix.node-version }}
@@ -20,23 +22,22 @@ jobs:
20
22
node-version : ${{ matrix.node-version }}
21
23
- name : Install dependencies
22
24
run : |
23
- sudo add-apt-repository -y ubuntu-toolchain-r-test
24
- sudo apt-get -y update
25
- sudo apt-get install -y python3 make g++-4.8
26
- - run : npm ci
27
- - run : npm test
25
+ sudo apt-get install -y python3 make g++
26
+ - name : Test
27
+ run : npm test
28
28
29
29
build-alpine :
30
- runs-on : ubuntu-18 .04
30
+ runs-on : ubuntu-22 .04
31
31
strategy :
32
32
matrix :
33
- node-version : [14, 16, 17, 18]
33
+ node-version : [14, 16, 18]
34
34
container :
35
35
image : node:${{ matrix.node-version }}-alpine
36
36
steps :
37
37
- uses : actions/checkout@v2
38
38
- name : Install dependencies
39
39
run : |
40
- apk add make g++ python
41
- - run : npm ci --unsafe-perm
42
- - run : npm test --unsafe-perm
40
+ apk add make g++ python3
41
+ - name : Test
42
+ run : |
43
+ npm test --unsafe-perm
0 commit comments