From 0e4abe9cb484f28e39344de373efb9085335af69 Mon Sep 17 00:00:00 2001 From: Jenny Ferries Date: Wed, 13 Nov 2024 10:22:16 -0800 Subject: [PATCH] fix yaml --- .github/workflows/dotnetcore.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 5ae629efc..76c274532 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -23,17 +23,29 @@ jobs: continue-on-error: true name: "Build and run unit tests" - strategy: - matrix: - dotnet-version:[ '6.0.x', '7.0.x', '8.0.x', '9.0.x' ] steps: - name: Checkout repository uses: actions/checkout@v4.2.1 - - name: Setup .NET + - name: Setup .NET 6.0.x uses: actions/setup-dotnet@v4.0.1 with: - dotnet-version: ${{ matrix.dotnet-version }} + dotnet-version: '6.0.x' + + - name: Setup .NET 7.0.x + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '7.0.x' + + - name: Setup .NET 8.0.x + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '8.0.x' + + - name: Setup .NET 9.0.x + uses: actions/setup-dotnet@v4.0.1 + with: + dotnet-version: '9.0.x' - name: 'Setup MSBuild' uses: microsoft/setup-msbuild@v2 @@ -79,6 +91,9 @@ jobs: repo: context.repo.repo, body: process.env.COMMENT_CONTENT_ENV_VAR }) + + - name: Test with .NET 9.0.x + run: dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net9.0 -v normal -p:FROM_GITHUB_ACTION=true -p:TargetNet9=True --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Tests)" - name: Test with .NET 462 run: dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net462 -v normal -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)"