Skip to content

Commit cdfe6b2

Browse files
authored
Merge pull request #858 from kelektiv/github-actions
2 parents a05aac4 + 229900f commit cdfe6b2

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)