Skip to content

added job summary to output #53

added job summary to output

added job summary to output #53

Workflow file for this run

on:
pull_request:
push:
branches:
- main
name: Continuous integration
jobs:
test:
name: "Test"
strategy:
fail-fast: true
matrix:
cmd:
- check
- fmt --all -- --check
- clippy -- -D warnings
- doc
- 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