Skip to content

Commit

Permalink
Conformance results
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkmcc authored and Michael Ciccotti committed Aug 9, 2024
1 parent 3ec8d65 commit a58e4e5
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ jobs:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Run conformance tests
run: cargo test --test conformance
run: cargo test --test conformance 2>&1 | tee conformance.log
continue-on-error: true
- id: conformance
name: Conformance results
continue-on-error: true
run: |
cargo test --test conformance > conformance.log
read -r passed skipped failed <<< $(cat conformance.log | perl -n -e'/steps \((\d+) passed, (\d+) skipped, (\d+) failed\)/ && print "$1 $2 $3"')
echo "passed=$passed"
Expand All @@ -60,8 +57,8 @@ jobs:
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Conformance score: ${{ steps.conformance.outputs.score }}%
Passed: ${{ steps.conformance.outputs.passed }}
Skipped: ${{ steps.conformance.outputs.skipped }}
Failed: ${{ steps.conformance.outputs.failed }}
**Conformance score**: ${{ steps.conformance.outputs.score }}%
**Passed**: ${{ steps.conformance.outputs.passed }}
**Skipped**: ${{ steps.conformance.outputs.skipped }}
**Failed**: ${{ steps.conformance.outputs.failed }}

0 comments on commit a58e4e5

Please sign in to comment.