Skip to content

Commit

Permalink
ci: Try add report for test results.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerclique committed Jul 24, 2024
1 parent ce19d14 commit a2987e0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
- name: Install stable toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy, cargo2junit
components: rustfmt, clippy

- name: Install cargo2junit
run: cargo install cargo2junit

- name: Checkout sources
uses: actions/checkout@v4
Expand All @@ -30,7 +33,13 @@ jobs:
run: cargo build --release

- name: Run tests
run: cargo test --release
run: cargo test --release --format json | cargo2junit > results.xml

- name: Upload test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
check_name: Test Results
files: results.xml

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit a2987e0

Please sign in to comment.