-
Notifications
You must be signed in to change notification settings - Fork 16
64 lines (59 loc) · 2.43 KB
/
e2e-test.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
name: E2E testing
on:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
# Chrome 84.0 is the oldest version available on selenium/standalone-xxx.
# Firefox 78.0 is also the oldest available on selenium/standalone-xxx.
# [Purposes]
# fetch() upload streaming: the latest version of Chrome used in this test
# Non fetch()-upload streaming: the other browser
# Streaming download: All browser with disable_service_worker=false
# Non-streaming download: disable_service_worker=true
# Fallback to posting chunks of ReadableStream over MessageChannel: chrome:84.0
# "selenium/standalone-${e2e_docker_image_fragment}"
# Why fragment? These short names are more readable in GitHub UI
- e2e_docker_image_fragment: chrome:115.0
e2e_service_worker_disable: false
e2e_block_popup: false
- e2e_docker_image_fragment: chrome:84.0
e2e_service_worker_disable: false
e2e_block_popup: false
- e2e_docker_image_fragment: firefox:118.0
e2e_service_worker_disable: false
e2e_block_popup: false
- e2e_docker_image_fragment: firefox:78.0
e2e_service_worker_disable: false
e2e_block_popup: false
- e2e_docker_image_fragment: firefox:118.0
e2e_service_worker_disable: true
e2e_block_popup: false
- e2e_docker_image_fragment: firefox:78.0
e2e_service_worker_disable: true
e2e_block_popup: false
- e2e_docker_image_fragment: firefox:118.0
e2e_service_worker_disable: false
e2e_block_popup: true
runs-on: ubuntu-20.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
node-version: 20.x
cache: 'npm'
cache-dependency-path: |
package-lock.json
e2e-test/package-lock.json
- name: Install dependencies
run: |
set -eu
npm ci &
(cd e2e-test && npm ci) &
wait
- name: E2E test (${{ matrix.e2e_docker_image_fragment }})
run: cd e2e-test && E2E_DOCKER_IMAGE=selenium/standalone-${{ matrix.e2e_docker_image_fragment }} E2E_DISABLE_SERVICE_WORKER=${{ matrix.e2e_service_worker_disable }} E2E_BLOCK_POPUP=${{ matrix.e2e_block_popup }} npm start