Skip to content

Commit

Permalink
Merge pull request #19 from yizshi/fix_ci
Browse files Browse the repository at this point in the history
Add new dotnet core test as well as fix exist dotnet framework test
  • Loading branch information
AaronAtDuo authored Dec 6, 2022
2 parents b82a6db + 961c109 commit a9cc6c7
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .github/workflows/net-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a9cc6c7

Please sign in to comment.