From 9cf52a395c7d38ce5977c0b3cc285a8587f571d0 Mon Sep 17 00:00:00 2001 From: "Zi Chen (from Dev Box)" Date: Fri, 9 Feb 2024 10:52:16 -0800 Subject: [PATCH] Try matrix again --- .github/workflows/pr-validation.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index ba25042..436e275 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -6,30 +6,14 @@ jobs: test: runs-on: ${{ matrix.os }} strategy: - fail-fast: false matrix: os: [windows-latest, ubuntu-latest, macos-latest] + dotnetVersion: [3.1.x, 5.x, 6.x, 7.x, 8.x] steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '3.1.x' - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '5.x' - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '6.x' - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '7.x' - - uses: actions/setup-dotnet@v4 - with: - dotnet-version: '8.x' + dotnet-version: ${{ matrix.dotnetVersion }} - run: dotnet build DacFx.sln - run: dotnet pack DacFx.sln - - run: dotnet test DacFx.sln -f netcoreapp3.1 - - run: dotnet test DacFx.sln -f net5.0 - - run: dotnet test DacFx.sln -f net6.0 - - run: dotnet test DacFx.sln -f net7.0 - - run: dotnet test DacFx.sln -f net8.0 \ No newline at end of file + - run: dotnet test DacFx.sln \ No newline at end of file