Skip to content

Commit 4ec9213

Browse files
committed
(#40) CI workflow WIP
1 parent 45529ed commit 4ec9213

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yaml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Run CI
2+
on:
3+
push:
4+
branches-ignore:
5+
- develop
6+
- release/**
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
strategy:
12+
matrix:
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
node: [ 10, 12, 14 ]
15+
runs-on: ${{matrix.os}}
16+
steps:
17+
- name: Set up Git repository
18+
uses: actions/checkout@v2
19+
- name: Set up node
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{matrix.node}}
23+
- name: Configure Linux environment
24+
if: ${{matrix.os == 'ubuntu-latest'}}
25+
run: |
26+
sudo apt-get install -y cmake libx11-dev zlib1g-dev libpng-dev libxtst-dev g++-4.8 gcc-4.8
27+
export CXX=g++-4.8 && $CXX --version
28+
- name: Install
29+
run: npm run patch && npm i
30+
- name: Build
31+
run: npm run build:release
32+
- name: Run tests
33+
working-directory: ./test
34+
run: npm cit
35+
- name: Run window tests
36+
uses: GabrielBB/xvfb-action@v1
37+
with:
38+
working-directory: ./test/window-integration-tests
39+
run: npm cit

0 commit comments

Comments
 (0)