mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
fix(ci): don't run cypress tests in parallel when started from a fork (#1631)
Workaround for https://github.com/cypress-io/github-action/issues/1546
This commit is contained in:
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@@ -321,7 +321,8 @@ jobs:
|
||||
# https://github.com/cypress-io/github-action/issues/48
|
||||
fail-fast: false
|
||||
matrix:
|
||||
containers: [1, 2, 3, 4]
|
||||
# Only run parallel tests for non-fork PRs, single container for forks
|
||||
containers: ${{ github.event.pull_request.head.repo.fork != true && fromJSON('[1, 2, 3, 4]') || fromJSON('[1]') }}
|
||||
container:
|
||||
image: cypress/browsers:latest@sha256:1f1adf3bd11c79465abc22e1e29848695fdbbe82d468957103dc0f8ba00e0f8e
|
||||
options: --user 1001
|
||||
@@ -365,8 +366,8 @@ jobs:
|
||||
install: false
|
||||
working-directory: frontend
|
||||
browser: chrome
|
||||
record: true
|
||||
parallel: true
|
||||
record: ${{ github.event.pull_request.head.repo.fork != true }}
|
||||
parallel: ${{ github.event.pull_request.head.repo.fork != true }}
|
||||
start: |
|
||||
pnpm run preview:vikunja
|
||||
pnpm run preview
|
||||
|
||||
Reference in New Issue
Block a user