-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat-format-ratio
- Loading branch information
Showing
34 changed files
with
946 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REACT_APP_TRANSMISSION_RPC=http://tr.zj9495.com:9091 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: E2E on Chrome | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
e2e-on-chrome: | ||
runs-on: ubuntu-20.04 | ||
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: chrome | ||
headless: true | ||
start: npm start | ||
wait-on: "http://localhost:8888" | ||
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://localhost:9091 | ||
REACT_APP_RPC_DELAY: 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: E2E on Edge | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
e2e-on-edge: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: cypress/browsers:node14.10.1-edge88 | ||
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: edge | ||
headless: true | ||
start: npm start | ||
wait-on: "http://localhost:8888" | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
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] | ||
|
||
jobs: | ||
e2e-on-firefox: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: cypress/browsers:node14.16.0-chrome90-ff88 | ||
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" | ||
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"protocol": "http", | ||
"host": "localhost", | ||
"port": 8888, | ||
"path": "/transmission/web", | ||
"user": "zj9495", | ||
"password": "zj9495" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.