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:
kolaente
2025-10-09 14:02:24 +02:00
committed by GitHub
parent 27015e0ab7
commit 6425c6d2d8

View File

@@ -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