Skip to content

Commit fc03ca8

Browse files
randleeclaude
andcommitted
ci: Add GitHub Actions workflow for build and test
Runs on: - Push to main or develop - PRs targeting main or develop Pipeline: - Restore, build, test with .NET 10 - Upload test results and coverage reports Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 9f01202 commit fc03ca8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: '10.0.x'
21+
dotnet-quality: 'preview'
22+
23+
- name: Restore dependencies
24+
run: dotnet restore
25+
26+
- name: Build
27+
run: dotnet build --no-restore --configuration Release
28+
29+
- name: Test
30+
run: dotnet test --no-build --configuration Release --verbosity normal --logger "trx;LogFileName=test-results.trx" --collect:"XPlat Code Coverage"
31+
32+
- name: Upload test results
33+
uses: actions/upload-artifact@v4
34+
if: always()
35+
with:
36+
name: test-results
37+
path: "**/TestResults/**/*.trx"
38+
39+
- name: Upload coverage reports
40+
uses: actions/upload-artifact@v4
41+
if: always()
42+
with:
43+
name: coverage-reports
44+
path: "**/TestResults/**/coverage.cobertura.xml"

0 commit comments

Comments
 (0)