Skip to content

Commit c80218c

Browse files
author
Damian Romanowski
committed
added TestResults upoload
1 parent febf059 commit c80218c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ env:
2121

2222
jobs:
2323
build:
24+
permissions:
25+
checks: write
26+
pull-requests: write
2427
runs-on: windows-latest
2528

2629
steps:
@@ -46,7 +49,16 @@ jobs:
4649
run: dotnet build ${{ env.SLN }} --no-restore --configuration ${{ env.CONFIGURATION }} -p:GITHUB_ACTIONS=true
4750

4851
- name: ${{ env.SLN }} ${{ env.CONFIGURATION }} Test
49-
run: dotnet test ${{ env.SLN }} --no-restore --no-build --configuration ${{ env.CONFIGURATION }}
52+
run: dotnet test ${{ env.SLN }} --no-restore --no-build --configuration ${{ env.CONFIGURATION }} --logger trx --results-directory '$(Agent.TempDirectory)/TestResults'
53+
54+
- name: Publish Test Results
55+
uses: EnricoMi/publish-unit-test-result-action/composite@v2
56+
if: always()
57+
with:
58+
files: |
59+
${{ '$(Agent.TempDirectory)/TestResults/*.trx' }}
60+
comment_mode: off
61+
5062

5163
- name: Publish Artifacts
5264
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)