-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from yizshi/fix_ci
Add new dotnet core test as well as fix exist dotnet framework test
- Loading branch information
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,30 @@ on: | |
- master | ||
|
||
jobs: | ||
# Build and test on .NET Core | ||
dotnet-core-ci: | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up .NET | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: ${{ matrix.dotnet-version }} | ||
|
||
- name: Install dependencies | ||
run: nuget restore | ||
|
||
- name: Build solution | ||
run: dotnet build | ||
|
||
- name: Run tests | ||
run: dotnet test | ||
|
||
# - name: Run linter | ||
# run: dotnet format --verify-no-changes | ||
|
||
# Build and test on .NET Framework | ||
dotnet-framework-ci: | ||
runs-on: windows-2022 | ||
|
@@ -22,8 +46,11 @@ jobs: | |
- name: Set up VSTest | ||
uses: darenm/Setup-VSTest@v1 | ||
|
||
- name: Install dependencies | ||
run: nuget restore | ||
|
||
- name: Build DuoApiTest solution | ||
run: msbuild.exe test/DuoAPiTest.sln | ||
run: msbuild.exe duo_api_csharp.sln | ||
|
||
- name: Run Tests dll | ||
run: vstest.console.exe .\test\bin\Debug\test.dll | ||
run: vstest.console.exe .\test\bin\Debug\test.dll |