-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (79 loc) · 2.38 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Playwright Tests
on:
push:
branches:
- test/add-new-test
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm install
- name: Install browser dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwoff1 \
libopus0 \
libwebp7 \
libenchant-2-2 \
libgudev-1.0-0 \
libsecret-1-0 \
libhyphen0 \
libgstreamer1.0-0 \
libgstreamer-plugins-base1.0-0 \
libgstreamer-plugins-good1.0-0 \
gstreamer1.0-libav \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-pulseaudio \
libgtk-3-0 \
libnotify4 \
libnspr4 \
libnss3 \
libxss1 \
libxtst6 \
libatk-bridge2.0-0 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libpango1.0-0 \
libpangocairo-1.0-0 \
libatspi2.0-0 \
libjpeg-turbo8 \
libgdk-pixbuf2.0-0 \
libcups2 \
libxshmfence1 \
libopenjp2-7 \
libflac8 \
libharfbuzz-icu0 \
libflite1 \
libgles2-mesa \
libevent-2.1-7 \
libmanette-0.2-0
- name: Install playwright driver
run: npx playwright install
- name: Run Playwright tests
env:
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
FIREBASE_AUTHDOMAIN: ${{ secrets.FIREBASE_AUTHDOMAIN }}
FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
FIREBASE_STORAGE_BUCKET: ${{ secrets.FIREBASE_STORAGE_BUCKET }}
FIREBASE_MESSAGE_SENDER_ID: ${{ secrets.FIREBASE_MESSAGE_SENDER_ID }}
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
run: npx playwright test
- name: Upload screenshots
if: always() # Always run this step, even if previous steps fail
uses: actions/upload-artifact@v2
with:
name: screenshots
path: "*.png"