Skip to content

Commit

Permalink
store capybara-screenshot artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Dec 16, 2024
1 parent 0bd6e5a commit e7fc15f
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ jobs:
name: Run migrations
run: bundle exec rake db:migrate
-
id: tests
name: Run tests
env:
FIREFOX_BINARY_PATH: ${{ steps.setup-firefox.outputs.firefox-path }}
Expand All @@ -158,9 +159,17 @@ jobs:
export PATH="$(dirname $(which geckodriver)):${PATH}"
mkdir /tmp/test-results
bundle exec rspec --backtrace --format progress --format RspecJunitFormatter --out /tmp/test-results/rspec.xml
- name: (temporary) Set up tmate access for debugging
-
name: Upload capybara-screenshot on test failure
uses: actions/upload-artifact@v4
if : ${{ steps.tests.conclusion == 'failure' }}
with:
name: capybara-screenshot
path: tmp/capybara
-
name: (temporary) Set up tmate access for debugging
uses: mxschmitt/action-tmate@v3
if: ${{ failure() }}
if: ${{ steps.tests.conclusion == 'failure' }}
timeout-minutes: 15
with:
detached: true
Expand All @@ -175,15 +184,15 @@ jobs:
-
name: Publish RSpec report
uses: mikepenz/action-junit-report@v3
if: always()
if: ${{ always() }}
continue-on-error: true
with:
check_name: Test summary
report_paths: /tmp/test-results/*.xml
-
name: Publish coverage
uses: joshmfrankel/simplecov-check-action@main
if: always()
if: ${{ success() }}
continue-on-error: true
with:
check_job_name: Test coverage
Expand Down

0 comments on commit e7fc15f

Please sign in to comment.