Skip to content

Commit 8547a9c

Browse files
akcontraforceclaude
andcommitted
Add GitHub Actions build and test workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3d64e94 commit 8547a9c

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches: [master, feature/upgrade-dotnet10]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: |
20+
8.0.x
21+
9.0.x
22+
10.0.x
23+
24+
- name: Restore dependencies
25+
run: dotnet restore src/AKSoftware.Localization.MultiLanguages.sln
26+
27+
- name: Build core library
28+
run: dotnet build src/AKSoftware.Localization.MultiLanguages/AKSoftware.Localization.MultiLanguages.csproj --configuration Release --no-restore
29+
30+
- name: Build Blazor extension
31+
run: dotnet build src/AKSoftware.Localization.MultiLanguages.Blazor/AKSoftware.Localization.MultiLanguages.Blazor.csproj --configuration Release --no-restore
32+
33+
- name: Build source generator
34+
run: dotnet build src/AKSoftware.Localization.MultiLanguages.SourceGenerator/AKSoftware.Localization.MultiLanguages.SourceGenerator.csproj --configuration Release --no-restore
35+
36+
- name: Run tests
37+
run: dotnet test src/AKSoftware.Localization.MultiLanguages.Tests/AKSoftware.Localization.MultiLanguages.Tests.csproj --configuration Release --no-restore --verbosity normal

0 commit comments

Comments
 (0)