Skip to content

Commit 9b6cdd0

Browse files
authored
ci: fix e2e test suite retries not working (#10525)
We were deleting the test/packed folder without resetting the test/package.json.
1 parent dc6d79e commit 9b6cdd0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ jobs:
374374
max_attempts: 5
375375
timeout_minutes: 20
376376
command: PLAYWRIGHT_JSON_OUTPUT_NAME=results_${{ matrix.suite }}.json pnpm test:e2e:prod:ci ${{ matrix.suite }}
377-
on_retry_command: pnpm clean:build && pnpm install --no-frozen-lockfile && pnpm build:all
377+
on_retry_command: pnpm clean:build:allowtgz && pnpm install --no-frozen-lockfile && pnpm build:all
378378
env:
379379
PLAYWRIGHT_JSON_OUTPUT_NAME: results_${{ matrix.suite }}.json
380380
NEXT_TELEMETRY_DISABLED: 1

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"clean": "turbo clean",
5353
"clean:all": "node ./scripts/delete-recursively.js '@node_modules' 'media/*' '**/dist/' '**/.cache/*' '**/.next/*' '**/.turbo/*' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
5454
"clean:build": "node ./scripts/delete-recursively.js 'media/' '**/dist/' '**/.cache/' '**/.next/' '**/.turbo/' '**/tsconfig.tsbuildinfo' '**/payload*.tgz' '**/meta_*.json'",
55+
"clean:build:allowtgz": "node ./scripts/delete-recursively.js 'media/' '**/dist/' '**/.cache/' '**/.next/' '**/.turbo/' '**/tsconfig.tsbuildinfo' '**/meta_*.json'",
5556
"clean:cache": "node ./scripts/delete-recursively.js node_modules/.cache! packages/payload/node_modules/.cache! .next/*",
5657
"dev": "cross-env NODE_OPTIONS=--no-deprecation tsx ./test/dev.ts",
5758
"dev:generate-db-schema": "pnpm runts ./test/generateDatabaseSchema.ts",

0 commit comments

Comments
 (0)