From cbdbf4689ec824a191e7cb1a08af9cb7e588fcca Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Thu, 23 May 2024 17:08:46 +0200 Subject: [PATCH] ci: Add step to upload screenshots on test failure --- .github/workflows/podman.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/podman.yml b/.github/workflows/podman.yml index 4ca3a8d96..50fd7ae5c 100644 --- a/.github/workflows/podman.yml +++ b/.github/workflows/podman.yml @@ -195,6 +195,13 @@ jobs: BASE_URL: "https://acc.amsterdammusiclab.nl" steps: + - uses: actions/checkout@v4 - name: Run E2E tests - run: cd e2e && bash run-tests \ No newline at end of file + run: cd e2e && bash run-tests + - name: Upload Screenshots + if: failure() + uses: actions/upload-artifact@v2 + with: + name: selenium-screenshots + path: e2e/screenshots/ \ No newline at end of file