Skip to content

Commit 7e142d5

Browse files
committed
fix: Use toolkit for cargo2junit.
1 parent 9bc1d9b commit 7e142d5

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/test-with-coverage.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,16 @@ jobs:
9292
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9393
with:
9494
run: |
95-
git config --global --add safe.directory /github/workspace
9695
task test
9796
9897
- name: Generate test results and coverage report
98+
uses: yonasBSD/toolkit@main
9999
env:
100100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101-
run: |
102-
cargo test $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml;
103-
cargo llvm-cov --all-features --workspace --codecov --output-path ./codecov.json
101+
with:
102+
run: |
103+
cargo test $CARGO_OPTIONS -- -Z unstable-options --format json | cargo2junit > results.xml;
104+
cargo llvm-cov --all-features --workspace --codecov --output-path ./codecov.json
104105
105106
- name: Upload test results
106107
uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2.18.0

0 commit comments

Comments
 (0)