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: