Skip to content

Commit 4d87e18

Browse files
author
Mark Kharitonov
committed
wip
1 parent 44f0bea commit 4d87e18

1 file changed

Lines changed: 32 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
permissions:
10+
contents: read
11+
checks: write
12+
pull-requests: write
13+
914
jobs:
1015
build-and-test:
1116
runs-on: ubuntu-latest
@@ -26,4 +31,30 @@ jobs:
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

0 commit comments

Comments
 (0)