-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 917 Bytes
/
check.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
name: Run Checks
on:
push:
branches: [ feature/v2 ]
pull_request:
branches: [ feature/v2 ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install Chrome dependencies
run: |
sudo apt-get install -qq chromium-browser xvfb > /dev/null
- name: Install dependencies
run: |
npm install
npm install -g sass-lint
- name: Run checks
env:
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium-browser
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
DISPLAY: ':99.0'
CI: 'true'
PUPPETEER_HEADLESS: 'true'
run: |
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
chmod +x bin/check
chmod +x bin/fastcheck
bin/check