mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-24 03:12:54 +00:00
Parallel ci jobs (#1323)
* Add parallel testing to e2e ci job Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
65ee5a7a35
commit
f4e5d795e6
2 changed files with 15 additions and 4 deletions
16
.github/workflows/e2e.yml
vendored
16
.github/workflows/e2e.yml
vendored
|
@ -6,9 +6,9 @@ name: e2e
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-frontend:
|
build-frontend:
|
||||||
|
@ -22,7 +22,7 @@ jobs:
|
||||||
uses: actions/cache@v2.1.6
|
uses: actions/cache@v2.1.6
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
key: build
|
key: build-${{ hashFiles('src/**') }}
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
|
@ -61,8 +61,10 @@ jobs:
|
||||||
image: cypress/browsers:node14.16.0-chrome90-ff88
|
image: cypress/browsers:node14.16.0-chrome90-ff88
|
||||||
options: --user 1001 --shm-size=2g
|
options: --user 1001 --shm-size=2g
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
browser: [ 'chrome', 'firefox' ]
|
browser: [ 'chrome', 'firefox' ]
|
||||||
|
containers: [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repo
|
- name: Check out repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -77,6 +79,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
browser: ${{ matrix.browser }}
|
browser: ${{ matrix.browser }}
|
||||||
start: 'yarn serve:build'
|
start: 'yarn serve:build'
|
||||||
|
parallel: true
|
||||||
|
record: true
|
||||||
|
group: "UI - ${{ matrix.browser }}"
|
||||||
|
wait-on: 'http://127.0.0.1:3001/'
|
||||||
|
wait-on-timeout: 120
|
||||||
|
env:
|
||||||
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"baseUrl": "http://127.0.0.1:3001/",
|
"baseUrl": "http://127.0.0.1:3001/",
|
||||||
"defaultCommandTimeout": 15000,
|
"defaultCommandTimeout": 15000,
|
||||||
"video": false
|
"video": false,
|
||||||
|
"projectId": "ht3vbo"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue