-
Notifications
You must be signed in to change notification settings - Fork 39
56 lines (51 loc) · 1.4 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
name: check
on:
push:
branches: [master]
pull_request:
schedule:
- cron: '15 3 * * *'
jobs:
static:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
version: '16'
- run: cp src/secrets.js.template src/secrets.js
- run: yarnpkg
- run: npm run lint:code
- run: npm run lint:style
- run: npm run build
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- browser: FirefoxHeadless
firefox-version: '52.9.0esr'
needs-xvfb: true
- browser: FirefoxHeadless
firefox-version: 'latest'
- browser: ChromeHeadless
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
version: '16'
- run: cp src/secrets.js.template src/secrets.js
- run: yarnpkg
- name: install specific version of Firefox
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{matrix.firefox-version}}
if: matrix.firefox-version
- run: npm run test -- --browsers ${{matrix.browser}}
if: ${{! matrix.needs-xvfb}}
- name: run tests with xvfb
uses: GabrielBB/xvfb-action@v1
with:
run: npm run test -- --browsers ${{matrix.browser}}
if: matrix.needs-xvfb