-
Notifications
You must be signed in to change notification settings - Fork 326
50 lines (40 loc) · 1.02 KB
/
test.yml
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
43
44
45
46
47
48
49
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Install
run: yarn install --frozen-lockfile
env:
CI: true
- name: Build
run: yarn build
env:
CI: true
- name: Unit Tests
run: yarn test:unit
env:
CI: true
- name: E2E Tests
run: yarn run test:e2e && yarn run test:fixture
if: runner.os != 'Linux'
env:
CI: true
- name: E2E Tests (Linux)
run: xvfb-run -a yarn run test:e2e && xvfb-run -a yarn run test:fixture
if: runner.os == 'Linux'
env:
CI: true