Skip to content

Commit 8ee91e4

Browse files
committed
- remove debugging steps from Workflow
1 parent b28c9e2 commit 8ee91e4

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

.github/workflows/graphiql-e2e-tests.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -56,37 +56,6 @@ jobs:
5656

5757
- name: Run E2E tests
5858
run: npm run test:e2e
59-
continue-on-error: true # This allows the workflow to continue even if this step fails, so that screenshots can be collected.
60-
61-
- name: List Screenshots
62-
if: always() # Ensures this step always runs for diagnostic purposes
63-
run: |
64-
echo "Listing contents of artifacts/test-results/"
65-
ls -R artifacts/test-results/ || echo "No screenshots directory found"
66-
67-
- name: Check for Screenshots and Upload if Present
68-
if: always() # This ensures the step runs regardless of previous success/failure
69-
run: |
70-
if [ -d artifacts/test-results/ ] && [ "$(ls -A artifacts/test-results/)" ]; then
71-
echo "Screenshots found, uploading..."
72-
echo "::set-output name=upload_screenshots::true"
73-
else
74-
echo "No screenshots found, skipping upload."
75-
echo "::set-output name=upload_screenshots::false"
76-
fi
77-
id: check_screenshots
78-
79-
- name: Upload Screenshots on Failure
80-
if: always() # This ensures that the following steps are only run if the previous step fails.
81-
uses: actions/upload-artifact@v4
82-
with:
83-
name: failed-test-screenshots
84-
path: artifacts/test-results/
85-
compression-level: 1
86-
if-no-files-found: warn
87-
retention-days: 1
88-
overwrite: true
8959

9060
- name: Stop WordPress Environment
9161
run: npm run wp-env -- stop
92-

0 commit comments

Comments
 (0)