From b57ab2870b4a869d63540d8b65e9e7ef4ea3134e Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 30 Sep 2024 13:44:37 +0200 Subject: [PATCH] Store logs/screenshots if suite fails --- .github/workflows/spec.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index c4ec147b..4a7c8340 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -41,6 +41,14 @@ jobs: bundle exec rake factory_bot:lint RAILS_ENV=test - name: spec/${{ matrix.suite }} run: bundle exec rake spec:${{ matrix.suite }} + - name: Upload Suite Artifacts + if: ${{ failure() }} + uses: actions/upload-artifact@v4 + with: + name: logs-${{ matrix.suite }} + path: | + log/ + tmp/capybara - name: coverage upload ${{ matrix.suite }} uses: codacy/codacy-coverage-reporter-action@master if: github.ref == 'refs/heads/master'