Skip to content

Commit

Permalink
try to add dotnet core jobs + try build dotnet framework
Browse files Browse the repository at this point in the history
  • Loading branch information
yizshi committed Dec 6, 2022
1 parent 1bf5c40 commit eca3cda
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/net-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit eca3cda

Please sign in to comment.