From 665566c28c03a67e04a4e1af08500a4af207b3d6 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 20 Oct 2021 10:36:35 +0200 Subject: [PATCH] Archive failed tests screenshots --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f636dbbfa3..3ea7a3fdec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,15 @@ jobs: - name: Run controller tests run: bundle exec rspec --profile -- ${{ matrix.specs }} + - name: Archive failed tests screenshots + if: failure() + uses: actions/upload-artifact@v2 + with: + name: failed-tests-screenshots + path: tmp/capybara/screenshots/*.png + retention-days: 7 + if-no-files-found: ignore + test-the-rest: runs-on: ubuntu-18.04 services: