Skip to content

Commit 2134ddf

Browse files
GitHub Actions workflow added
1 parent 15a9231 commit 2134ddf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/dotnet-tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: .NET Tests (collector)
2+
3+
on:
4+
push: { branches: [ "main" ] }
5+
pull_request: { branches: [ "main" ] }
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-dotnet@v4
13+
with:
14+
dotnet-version: '9.0.x'
15+
16+
- name: Restore
17+
run: dotnet restore
18+
19+
- name: Test (collector, Cobertura)
20+
run: |
21+
# Centralize results in one folder (still creates GUID subfolders inside)
22+
dotnet test --collect:"XPlat Code Coverage" --results-directory ./TestResults
23+
24+
- name: Upload coverage artifacts (Cobertura)
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: cobertura-reports
28+
path: '**/TestResults/**/coverage.cobertura.xml'

0 commit comments

Comments
 (0)