From 019e38a7461c9cbf0d5086a9c019eb0df467786d Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Tue, 12 Nov 2024 17:20:36 +0100 Subject: [PATCH] chore(ci): Upload screenshots on test failure --- .forgejo/workflows/testing.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.forgejo/workflows/testing.yml b/.forgejo/workflows/testing.yml index 1d68ea1771..ffe51c5bec 100644 --- a/.forgejo/workflows/testing.yml +++ b/.forgejo/workflows/testing.yml @@ -121,6 +121,13 @@ jobs: USE_REPO_TEST_DIR: 1 PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 CHANGED_FILES: ${{steps.changed-files.outputs.all_changed_files}} + - name: Upload screenshots on failure + if: failure() + uses: https://code.forgejo.org/forgejo/upload-artifact@v4 + with: + name: screenshots.zip + path: /workspace/forgejo/forgejo/tests/e2e/test-artifacts/*/*.png + retention-days: 3 test-remote-cacher: if: vars.ROLE == 'forgejo-coding' || vars.ROLE == 'forgejo-testing' runs-on: docker