Skip to content

Commit 297c6a2

Browse files
committed
add windows runner
1 parent 27812cf commit 297c6a2

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci-windows.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- windows-test
7+
# - main
8+
# - dev
9+
pull_request:
10+
branches:
11+
- windows-test
12+
# - main
13+
# - dev
14+
workflow_dispatch:
15+
16+
jobs:
17+
build:
18+
runs-on: windows-latest
19+
env:
20+
config: "Release"
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Setup .NET Core 9.0
26+
uses: actions/setup-dotnet@v4
27+
with:
28+
dotnet-version: 9.0.x
29+
30+
- name: Restore dependencies
31+
run: dotnet restore
32+
33+
- name: Build
34+
run: dotnet build --configuration $config --no-restore
35+
36+
- name: Test net9.0
37+
run: dotnet test src/NetCoreForce.Client.Tests --configuration $config --no-restore --no-build --verbosity normal --framework net9.0
38+
39+
- name: Test net48
40+
run: dotnet test src/NetCoreForce.Client.Tests --configuration $config --no-restore --no-build --verbosity normal --framework net48

0 commit comments

Comments
 (0)