Skip to content

Commit

Permalink
Add rust test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedenko-ubique committed Sep 19, 2024
1 parent 5c804ae commit 75353bc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/rust_test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Rust Test & Report
'on':
- pull_request
- workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: cargo
- name: Run tests
run: |
cargo +nightly test --workspace --all-targets -- -Z unstable-options --format json --report-time | tee results.json
- name: Prepare junit report
id: cargo_reporter
uses: innoq/action-cargo-test-report@v1
with:
cargo-test-report-json: results.json
- name: Publish Test Report
uses: mikepenz/[email protected]
if: always()
with:
check_name: Test Report
fail_on_failure: true
require_tests: true
summary: '${{ steps.cargo_reporter.outputs.summary }}'

0 comments on commit 75353bc

Please sign in to comment.