Correct binlog on attacker victory draw #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
push: | |
branches: | |
- "trunk" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run_tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare .NET tools | |
run: | | |
cd BinaryMatrixEngine.Tests | |
dotnet tool restore | |
- name: Run Tests with Coverage | |
id: run_tests | |
continue-on-error: true | |
run: | | |
cd BinaryMatrixEngine.Tests | |
dotnet dotCover cover-dotnet --Output=${{ runner.temp }}/coverage.report -- test | |
- name: Produce Coverage Report | |
run: | | |
cd BinaryMatrixEngine.Tests | |
dotnet dotCover report --Source=${{ runner.temp }}/coverage.report --Output=${{ runner.temp }}/coverage.json --ReportType=JSON | |
- name: Upload Coverage Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Coverage Report | |
path: | | |
${{ runner.temp }}/coverage.report | |
${{ runner.temp }}/coverage.json | |
- name: Produce Job Summary | |
run: | | |
printf "${{ steps.run_tests.outcome == 'success' && 'Test run success!' || 'Test run **FAILED**!' }}\n**Engine Coverage**: %s%%\n**Test Code Utilization**: %s%%" \ | |
"$(jq '.Children[] | select(.Kind == "Assembly" and .Name == "BinaryMatrixEngine") | .CoveragePercent' "${{ runner.temp }}/coverage.json")" \ | |
"$(jq '.Children[] | select(.Kind == "Assembly" and .Name == "BinaryMatrixEngine.Tests") | .CoveragePercent' "${{ runner.temp }}/coverage.json")" \ | |
> $GITHUB_STEP_SUMMARY |