Skip to content

Commit

Permalink
Use updated test action
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedenko-ubique committed Oct 25, 2024
1 parent 161e2f8 commit 061f1f9
Showing 1 changed file with 5 additions and 26 deletions.
31 changes: 5 additions & 26 deletions .github/workflows/rust_checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Rust Checks: rustfml, clippy & test'
'on':
on:
pull_request: null
workflow_dispatch: null
push:
Expand All @@ -11,32 +11,11 @@ jobs:
steps:
- name: Check clippy
uses: UbiqueInnovation/action-systems-rust-clippy@main
with:
toolchain: nightly
- name: Check formatting
uses: UbiqueInnovation/action-systems-rust-format@main
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 --all-features -- -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 }}'
- name: Run and report tests
uses: UbiqueInnovation/action-systems-rust-test@main

0 comments on commit 061f1f9

Please sign in to comment.