Skip to content

Commit

Permalink
added job summary to output
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed May 27, 2024
1 parent 7055d7d commit 000010f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,35 @@ jobs:
- fmt --all -- --check
- clippy -- -D warnings
- doc
- test
- test -- -Z unstable-options --format json --report-time | tee results.json
- build --release
- bench
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo ${{ matrix.cmd }}
env:
LOG_DEBUG: "true"
- name: Prepare junit report
if: startsWith(matrix.cmd, 'test')
id: cargo_reporter
uses: innoq/action-cargo-test-report
with:
cargo-test-report-json: 'results.json'

- name: Publish Test Report
uses: mikepenz/action-junit-report@main
if: startsWith(matrix.cmd, 'test') && always() # always run even if the previous step fails
with:
check_name: Test Report
fail_on_failure: true
require_tests: true
summary: ${{ steps.cargo_reporter.outputs.summary }}
conclude:
runs-on: ubuntu-latest
name: All tests passed
needs: [test]
steps:
- run: echo '::warn::Finished job'
- run: echo '### Good job! All the tests passed 🚀' >> $GITHUB_STEP_SUMMARY
- run: echo '### Good job! All the tests passed 🚀' >> $GITHUB_STEP_SUMMARY

0 comments on commit 000010f

Please sign in to comment.