Skip to content

Commit 5494553

Browse files
authored
Add GitHub Actions workflow for .NET build check
1 parent 77d57b8 commit 5494553

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build Check
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest # Kept Windows for desktop framework compatibility
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Setup .NET
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 10.0.x
23+
24+
- name: Restore Dependencies
25+
run: dotnet restore
26+
27+
- name: Build
28+
run: dotnet build --configuration Release --no-restore
29+
30+
- name: Execute Unit Tests
31+
run: dotnet test --configuration Release --no-build --verbosity normal

0 commit comments

Comments
 (0)