-
Notifications
You must be signed in to change notification settings - Fork 8
39 lines (35 loc) · 948 Bytes
/
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
name: Build and test
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
DISPLAY: :99.0
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
browser: ['ChromeCi', 'Firefox']
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup firefox
if: ${{ matrix.browser == 'Firefox' }}
uses: browser-actions/setup-firefox@latest
with:
firefox-version: 'latest'
- name: Setup xvfb
run: |
sudo apt-get install xvfb
Xvfb $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 &
- run: yarn install --frozen-lockfile
- env:
BROWSER: ${{ matrix.browser }}
run: yarn test --coverage
- run: node_modules/.bin/codecov