Merge pull request #3455 from hennevogel/ci/failure-artifacts

Store logs/screenshots if suite fails
This commit is contained in:
Henne Vogelsang 2024-09-30 17:09:06 +02:00 committed by GitHub
commit 23457e325e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'