Skip to content

Commit

Permalink
Build and test owin projects on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
akunzai committed Jan 18, 2025
1 parent 6decc00 commit ccaf8dc
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 37 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-owin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build OWIN

on:
push:
branches:
- main
paths:
- 'Directory.*.props'
- 'owin/**'
- 'src/GSS.Authentication.Owin/**'
pull_request:
branches:
- main
paths:
- 'Directory.*.props'
- 'owin/**'
- 'src/GSS.Authentication.Owin/**'

permissions: read-all

jobs:
msbuild:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x64
- name: Build
run: |
cd owin
msbuild -version
msbuild -noLogo -verbosity:minimal -restore
test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
- name: Test
run: |
cd owin
dotnet test --collect:"XPlat Code Coverage"
dotnet tool restore
dotnet tool run reportgenerator
- uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

36 changes: 0 additions & 36 deletions .github/workflows/build-own-sample.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
dotnet --info
dotnet build -c Release
dotnet-test:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit ccaf8dc

Please # to comment.