diff --git a/.github/workflows/formatting-and-tests.yml b/.github/workflows/formatting-and-tests.yml index 758f58d..4eca634 100644 --- a/.github/workflows/formatting-and-tests.yml +++ b/.github/workflows/formatting-and-tests.yml @@ -39,7 +39,7 @@ jobs: max-parallel: 4 matrix: working-directory: ["Flagsmith.EngineTest","Flagsmith.Client.Test"] - dotnet-version: ["6.x", "7.x", "8.x", "9.x", "10.x"] + dotnet-version: ["6.0", "7.0", "8.0", "9.0", "10.0"] steps: - name: Cloning repo @@ -52,17 +52,10 @@ jobs: run: make clone-engine-test-data - name: Set up Dotnet ${{ matrix.dotnet-version }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: | - 6.0.x - ${{ matrix.dotnet-version }} + dotnet-version: ${{ matrix.dotnet-version }}.x - name: Run Tests - # bafflingly adding the below debugging echo / version statements got the workflow to pass - run: | - echo "Dotnet version: " - dotnet --version - echo "-------" - dotnet test + run: dotnet test --framework net${{ matrix.dotnet-version }} working-directory: ${{ matrix.working-directory }} diff --git a/Flagsmith.Client.Test/ClientTest.csproj b/Flagsmith.Client.Test/ClientTest.csproj index cd790f5..d4306c8 100644 --- a/Flagsmith.Client.Test/ClientTest.csproj +++ b/Flagsmith.Client.Test/ClientTest.csproj @@ -1,7 +1,7 @@ - net6.0 + net6.0;net7.0;net8.0;net9.0;net10.0 false diff --git a/Flagsmith.EngineTest/EngineTest.csproj b/Flagsmith.EngineTest/EngineTest.csproj index 99957ed..5262ac4 100644 --- a/Flagsmith.EngineTest/EngineTest.csproj +++ b/Flagsmith.EngineTest/EngineTest.csproj @@ -1,7 +1,7 @@ - net6.0 + net6.0;net7.0;net8.0;net9.0;net10.0 false