From 95b2e4c62db530924bc11795c63ae217c7f4a5de Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 29 May 2025 19:38:37 +0100 Subject: [PATCH] Save any screenshots when tests fail in CI --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b60310e79..2c2f3c88f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,6 +61,13 @@ jobs: run: bundle exec rails test:all - name: Run javascript tests run: bundle exec teaspoon + - name: Upload screenshots + uses: actions/upload-artifact@v4 + if: failure() + with: + name: screenshots + path: tmp/screenshots + if-no-files-found: ignore - name: Report completion to Coveralls uses: coverallsapp/github-action@v2.3.6 with: -- 2.39.5