File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ master ]
88
9+ permissions :
10+ contents : read
11+ checks : write
12+ pull-requests : write
13+
914jobs :
1015 build-and-test :
1116 runs-on : ubuntu-latest
2631 run : dotnet build --no-restore --configuration Release
2732
2833 - name : Test
29- run : dotnet test --no-build --configuration Release --verbosity normal
34+ run : >
35+ dotnet test --no-build --configuration Release
36+ --logger "trx;LogFileName=test-results.trx"
37+ --results-directory ./test-results
38+
39+ - name : Upload test results
40+ uses : actions/upload-artifact@v4
41+ if : always()
42+ with :
43+ name : test-results
44+ path : ./test-results/
45+
46+ # Rich check-run report with per-test detail (runs on both push and PR)
47+ - name : Publish test report
48+ uses : dorny/test-reporter@v1
49+ if : always()
50+ with :
51+ name : Test results
52+ path : ./test-results/*.trx
53+ reporter : dotnet-trx
54+
55+ # PR comment summary (only meaningful on pull requests)
56+ - name : Publish PR test summary
57+ uses : EnricoMi/publish-unit-test-result-action@v2
58+ if : always() && github.event_name == 'pull_request'
59+ with :
60+ files : ./test-results/**/*.trx
You can’t perform that action at this time.
0 commit comments