Skip to content

Commit 49ee4cb

Browse files
committed
Modify .yml files to build against multiple targets
1 parent 95256b9 commit 49ee4cb

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
dotnet-version: ['6.0.x', '7.0.x', '8.0.x']
16+
dotnet-version: ['net6.0', 'net7.0', 'net8.0']
1717

1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Setup .NET
2121
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: ${{ matrix.dotnet-version }}
23+
dotnet-version: |
24+
6.0.x
25+
7.0.x
26+
8.0.x
2427
- name: Restore dependencies
2528
run: dotnet restore
2629
- name: Build
27-
run: dotnet build --no-restore
30+
run: dotnet build --no-restore --framework ${{ matrix.dotnet-version }} src/Auth0.AspNetCore.Authentication/Auth0.AspNetCore.Authentication.csproj
2831
- name: Test
29-
run: dotnet test --no-build --verbosity normal
32+
run: dotnet test --verbosity normal

playground/Auth0.AspNetCore.Authentication.Playground/Auth0.AspNetCore.Authentication.Playground.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFrameworks>net6.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

tests/Auth0.AspNetCore.Authentication.IntegrationTests/Auth0.AspNetCore.Authentication.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
<ProjectReference Include="..\..\src\Auth0.AspNetCore.Authentication\Auth0.AspNetCore.Authentication.csproj" />
4646
</ItemGroup>
4747

48-
</Project>
48+
</Project>

0 commit comments

Comments
 (0)