-
Notifications
You must be signed in to change notification settings - Fork 2
85 lines (81 loc) 路 2.18 KB
/
main.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: CI
on:
pull_request:
push:
branches:
- master
- beta
- release
- 'release-*'
- 'lts-*'
tags:
- '*'
jobs:
lint:
timeout-minutes: 1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Check for TypeScript problems
run: yarn problems
node-tests:
timeout-minutes: 3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Yarn install
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn test:node
browser-tests:
strategy:
matrix:
command: [development, production, fastboot]
launcher: [Chrome, IE, Firefox, Safari]
os: [macos-latest, windows-latest, ubuntu-latest]
exclude:
- os: macos-latest
launcher: IE
- os: windows-latest
launcher: Safari
- os: ubuntu-latest
launcher: IE
- os: ubuntu-latest
launcher: Safari
runs-on: ${{ matrix.os }}
name: (${{matrix.command}}) ${{matrix.launcher}} on ${{matrix.os}}
steps:
- if: matrix.launcher == 'Safari'
run: |
defaults write com.apple.Safari IncludeDevelopMenu YES
defaults write com.apple.Safari AllowRemoteAutomation 1
sudo safaridriver --enable
safaridriver -p 0 &
- if: matrix.os == 'macos-latest' && matrix.launcher == 'Chrome'
run: |
brew update
brew cask install google-chrome
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Launcher Info
run: |
yarn run testem launchers
- name: Run Test
timeout-minutes: 7
env:
TESTEM_CI_LAUNCHER: ${{ matrix.launcher }}
run: yarn test:${{ matrix.command }}