-
Notifications
You must be signed in to change notification settings - Fork 61
38 lines (37 loc) · 1.15 KB
/
e2e.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
name: E2E Testing
on:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
name: E2E Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: npm ci
- name: Install xvfb (linux)
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get install xvfb
- name: Run E2E on chrome (linux)
if: matrix.os == 'ubuntu-20.04'
run: xvfb-run --server-args="-screen 0, 1400x1000x24" --auto-servernum npm run test:e2e:chrome
- name: Set screen resolution (windows)
if: matrix.os == 'windows-latest'
run: Set-DisplayResolution -Width 1920 -Height 1080 -Force
shell: pwsh
- name: Run E2E on chrome (non-linux)
if: matrix.os != 'ubuntu-20.04'
run: npm run test:e2e:chrome
- name: Archive test results
if: success() || failure()
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: image_comparison_results
path: .tmp
retention-days: 5