-
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.
try to add dotnet core jobs + try build dotnet framework
- Loading branch information
Showing
1 changed file
with
28 additions
and
4 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 |
---|---|---|
|
@@ -3,12 +3,36 @@ name: .NET CI | |
on: | ||
push: | ||
branches: | ||
- master | ||
- "*" | ||
pull_request: | ||
branches: | ||
- 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 | ||
|
@@ -23,7 +47,7 @@ jobs: | |
uses: darenm/Setup-VSTest@v1 | ||
|
||
- 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 | ||
# - name: Run Tests dll | ||
# run: vstest.console.exe .\test\bin\Debug\test.dll |