Skip to content

Commit a9cc6c7

Browse files
authored
Merge pull request #19 from yizshi/fix_ci
Add new dotnet core test as well as fix exist dotnet framework test
2 parents b82a6db + 961c109 commit a9cc6c7

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/net-ci.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ on:
99
- master
1010

1111
jobs:
12+
# Build and test on .NET Core
13+
dotnet-core-ci:
14+
runs-on: windows-2022
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up .NET
20+
uses: actions/setup-dotnet@v1.7.2
21+
with:
22+
dotnet-version: ${{ matrix.dotnet-version }}
23+
24+
- name: Install dependencies
25+
run: nuget restore
26+
27+
- name: Build solution
28+
run: dotnet build
29+
30+
- name: Run tests
31+
run: dotnet test
32+
33+
# - name: Run linter
34+
# run: dotnet format --verify-no-changes
35+
1236
# Build and test on .NET Framework
1337
dotnet-framework-ci:
1438
runs-on: windows-2022
@@ -22,8 +46,11 @@ jobs:
2246
- name: Set up VSTest
2347
uses: darenm/Setup-VSTest@v1
2448

49+
- name: Install dependencies
50+
run: nuget restore
51+
2552
- name: Build DuoApiTest solution
26-
run: msbuild.exe test/DuoAPiTest.sln
53+
run: msbuild.exe duo_api_csharp.sln
2754

2855
- name: Run Tests dll
29-
run: vstest.console.exe .\test\bin\Debug\test.dll
56+
run: vstest.console.exe .\test\bin\Debug\test.dll

0 commit comments

Comments
 (0)