-
-
Notifications
You must be signed in to change notification settings - Fork 65
56 lines (49 loc) · 1.26 KB
/
tests.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: tests
on: [push, pull_request]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- name: Install Puppeteer dependencies
run: |
sudo apt-get update
sudo apt install -y --no-install-recommends \
libnss3 \
libdbus-1-3 \
libatk1.0-0 \
libasound2t64 \
libxrandr2 \
libxkbcommon-dev \
libxfixes3 \
libxcomposite1 \
libxdamage1 \
libgbm-dev \
libatk-bridge2.0-0 \
binutils \
libglib2.0-0 \
libgdk-pixbuf2.0-0 \
libgtk-3-0 \
libnss3-dev \
libxss-dev \
xvfb \
fonts-liberation \
libu2f-udev \
xdg-utils \
chromium-browser
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm test -- --ci --color
- uses: actions/upload-artifact@v4
if: always()
with:
name: screenshots
path: screenshots/
retention-days: 1