Skip to content

Commit

Permalink
Merge pull request #4 from sergiuosvat/potlock-sc
Browse files Browse the repository at this point in the history
test reports generation
  • Loading branch information
sergiuosvat authored Aug 22, 2024
2 parents fd6e698 + f9b2581 commit 9db2f10
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,24 @@ jobs:
rust-toolchain: stable
enable-contracts-size-report: false
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

summarize-test-results:
name: Summarize Test Results
runs-on: ubuntu-latest
needs: contracts
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Capture Test Output
run: |
mkdir -p test-results
cargo test -- --nocapture > test-results/output.txt
- name: Generate Summary
run: |
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo "| Test Name | Result |" >> $GITHUB_STEP_SUMMARY
echo "|-----------|--------|" >> $GITHUB_STEP_SUMMARY
grep "^test" test-results/output.txt | awk '{print "| " $2 " | " ($3=="ok" ? "passed" : "**FAILED**") " |"}' >> $GITHUB_STEP_SUMMARY

0 comments on commit 9db2f10

Please sign in to comment.