From 6425c6d2d83e73d85d36aa1fdb9acb8120050cd5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 9 Oct 2025 14:02:24 +0200 Subject: [PATCH] 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 --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4dcddeb82..234eaf22d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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