Skip to content

Commit 6611910

Browse files
authored
Update dotnet.yml
1 parent ca66bf5 commit 6611910

1 file changed

Lines changed: 18 additions & 8 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,27 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: [windows-latest]
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: Setup .NET
20-
uses: actions/setup-dotnet@v3
21-
with:
22-
dotnet-version: 4.8.x
19+
20+
- name: Setup MsBuild
21+
uses: microsoft/setup-msbuild@v1.3.1
22+
23+
- name: vstest-action
24+
uses: microsoft/vstest-action@v1.0.0
25+
26+
- name: Setup NuGet.exe
27+
# You may pin to the exact commit or the version.
28+
# uses: NuGet/setup-nuget@296fd3ccf8528660c91106efefe2364482f86d6f
29+
uses: NuGet/setup-nuget@v1.2.0
30+
2331
- name: Restore dependencies
24-
run: dotnet restore
32+
run: nuget restore CodeDocumentor.sln
33+
2534
- name: Build
26-
run: dotnet build --no-restore
35+
run: msbuild CodeDocumentor.sln /p:platform="Any CPU" /p:configuration="Release"
36+
2737
- name: Test
28-
run: dotnet test --no-build --verbosity normal
38+
uses: microsoft/vstest-action@v1.0.0

0 commit comments

Comments
 (0)