-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (62 loc) · 1.85 KB
/
e2e-test.ff.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
name: E2E on FireFox
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
env:
TZ: Asia/Shanghai
jobs:
e2e-on-firefox:
runs-on: ubuntu-20.04
container:
image: cypress/browsers:node14.17.6-slim-chrome100-ff99-edge
options: --user 1001
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run 4 copies of the current job in parallel
containers: [1, 2, 3, 4]
services:
transmission-rpc:
image: linuxserver/transmission:latest
env:
PUID: 1000
PGID: 1000
TZ: Europe/London
USER: zj9495
PASS: zj9495
ports:
- 9091:9091
nginx:
image: nginx:latest
env:
NGINX_PORT: 80
ports:
- 8080:80
steps:
- name: Checkout
uses: actions/checkout@v1
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v2
with:
browser: firefox
start: npm start
wait-on: "http://localhost:8888"
wait-on-timeout: 120
record: true
parallel: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REACT_APP_TRANSMISSION_RPC: http://transmission-rpc:9091
REACT_APP_RPC_DELAY: 100