File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches : [$default-branch]
6
+ pull_request :
7
+ branches : [$default-branch]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-18.04
12
+ strategy :
13
+ matrix :
14
+ node-version : [14.x, 16.x, 17.x, 18.x]
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Use Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v1
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ - name : Install dependencies
22
+ 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
28
+
29
+ build-alpine :
30
+ runs-on : ubuntu-18.04
31
+ strategy :
32
+ matrix :
33
+ node-version : [14, 16, 17, 18]
34
+ container :
35
+ image : node:${{ matrix.node-version }}-alpine
36
+ steps :
37
+ - uses : actions/checkout@v2
38
+ - name : Install dependencies
39
+ run : |
40
+ apk add make g++ python
41
+ - run : npm ci --unsafe-perm
42
+ - run : npm test --unsafe-perm
You can’t perform that action at this time.
0 commit comments