From 59d29b582255edf6e79f6abb5d390134366063df Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Fri, 14 Jun 2024 16:37:01 +1000 Subject: [PATCH] Run tests for different version in different jobs --- .github/workflows/build.yml | 14 ++++---------- OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1d73b6..523451d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,21 +16,15 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} runs-on: ubuntu-latest - + strategy: + matrix: + dotnet-version: ["6.x", "8.x"] steps: - uses: actions/checkout@v4 - name: Setup .NET SDK 6.0.x uses: actions/setup-dotnet@v3 with: - dotnet-version: "6.0.x" - - name: Setup .NET SDK 7.0.x - uses: actions/setup-dotnet@v3 - with: - dotnet-version: "7.0.x" - - name: Setup .NET SDK 8.0.x - uses: actions/setup-dotnet@v3 - with: - dotnet-version: "8.0.x" + dotnet-version: ${{ matrix.dotnet-version }} - uses: microsoft/DevSkim-Action@v1 - uses: github/codeql-action/upload-sarif@v2 with: diff --git a/OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj b/OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj index 1163369..c02dffd 100644 --- a/OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj +++ b/OneBlink.SDK.Tests/OneBlink.SDK.Tests.csproj @@ -2,7 +2,7 @@ Exe - net6.0;net8.0 + netstandard2.0 unit_tests false