Skip to content

Commit a058e36

Browse files
save report
1 parent 365aeb0 commit a058e36

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
# Unit Test Report
4949
5050
**Run Date**: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss UTC')
51-
**Branch**: ${{ github.ref_name }}
52-
**Commit**: ${{ github.sha }}
51+
**Branch**: `${{ github.ref_name }}`
52+
**Commit**: `${{ github.sha }}`
5353
5454
## Summary
5555
@@ -75,11 +75,14 @@ jobs:
7575
7676
---
7777
78-
[View Full Test Results](../actions/runs/${{ github.run_id }})
78+
[View Full Test Results](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
7979
"@
8080
8181
$report | Out-File -FilePath "test-report.md" -Encoding UTF8
8282
Write-Host $report
83+
84+
# Add to GitHub summary
85+
Add-Content -Path $env:GITHUB_STEP_SUMMARY -Value "## 🧪 Unit Tests`n`n✅ **$passed** / $total tests passed"
8386
}
8487
8588
- name: Upload Test Results

0 commit comments

Comments
 (0)