Skip to content

Commit 91ca5b0

Browse files
authored
Add trx report (#169)
* Add trx reporting * Fix trx path
1 parent d4d8992 commit 91ca5b0

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
schedule:
88
- cron: "0 8 * * 1" # At 08:00 on Monday
99

10+
permissions:
11+
checks: write
12+
pull-requests: write
13+
contents: read
14+
1015
jobs:
1116
unit-test:
1217
runs-on: ubuntu-latest
@@ -28,9 +33,17 @@ jobs:
2833
run: dotnet build --no-restore --nologo --configuration Release
2934
working-directory: src
3035
- name: Test
31-
run: dotnet test --no-build --configuration Release
36+
run: dotnet test --no-build --configuration Release --results-directory ../TestResults --report-trx
3237
working-directory: src
3338

39+
- name: 📄 Publish test results
40+
uses: dorny/[email protected]
41+
if: always()
42+
with:
43+
name: 'xUnit Test Results'
44+
path: 'TestResults/*.trx'
45+
reporter: dotnet-trx
46+
3447
code-style:
3548
runs-on: ubuntu-latest
3649
env:

.github/workflows/pr-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
types:
1111
- checks_requested
1212

13+
permissions:
14+
checks: write
15+
pull-requests: write
16+
contents: read
17+
1318
jobs:
1419
unit-test:
1520
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)