-
Notifications
You must be signed in to change notification settings - Fork 53
56 lines (44 loc) · 1.01 KB
/
ci.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: CI
on:
push:
branches-ignore:
- master
pull_request:
branches:
- master
env:
CI: true
DISPLAY: :99.0
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14", "16"]
name: "Node ${{ matrix.node }} on Linux: Lint and Test"
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2.4.1
with:
node-version: ${{ matrix.node }}
cache: "yarn"
- name: Setup 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 &
- name: Check versions
run: |
node --version
yarn --version
firefox --version
- name: Install
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Test
run: yarn test