-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 978 Bytes
/
main.yml
File metadata and controls
42 lines (40 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on: [push, pull_request]
jobs:
build-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-latest, ubuntu-18.04]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: CI
run: |
if [[ "$OSTYPE" == "linux-gnu" ]]; then
export DISPLAY=:99.0
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
fi
npm i -g xvfb-maybe
yarn
cd npm-package && yarn && cd ..
yarn test
yarn build
xvfb-maybe yarn test-e2e
build-test-windows:
runs-on: windows-2019
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10.x
- name: CI
shell: bash
run: |
yarn
cd npm-package && yarn && cd ..
yarn build
yarn test
yarn test-e2e