-
Notifications
You must be signed in to change notification settings - Fork 133
62 lines (46 loc) 路 1.58 KB
/
e2e-linux.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
name: E2E Tests Linux
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [12.x]
test: [chromium, firefox, webkit]
env:
QAW_ARTIFACT_PATH: ${{ github.workspace }}/artifacts
steps:
- uses: actions/checkout@v2
- name: Install chromium dependencies
if: matrix.test == 'chromium'
run: sudo apt-get install libgbm1
- name: Install webkit dependencies
if: matrix.test == 'webkit'
run: |
sudo apt-get install libwoff1 libopus0 libwebp6 libwebpdemux2 libenchant1c2a libgudev-1.0-0 libsecret-1-0 libhyphen0 libgdk-pixbuf2.0-0 libegl1 libgles2 libevent-2.1-6 libnotify4 libvpx5 libxslt1.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install
- run: npm run build
- run: npm run test:server &
if: matrix.test != 'lint'
- run: npm link && npm link qawolf
- run: QAW_BROWSER=${{ matrix.test }} npx qawolf test --headless --rootDir=./test/.qawolf
env:
CI: true
- name: Upload Artifacts
if: always()
uses: actions/upload-artifact@master
with:
name: artifacts
path: ${{ github.workspace }}/artifacts
timeout-minutes: 20