From be8f1ab01892c6d03e16153fde0938b1f7cb9205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gurhem?= Date: Thu, 23 Feb 2023 16:01:23 +0100 Subject: [PATCH] Manage frameworks in tests --- .github/workflows/publish-edge.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-edge.yml b/.github/workflows/publish-edge.yml index 8ee22e057..ff8ab9132 100644 --- a/.github/workflows/publish-edge.yml +++ b/.github/workflows/publish-edge.yml @@ -39,9 +39,11 @@ jobs: strategy: fail-fast: false matrix: - projects: - - packages/csharp/ArmoniK.Api.Tests - - packages/csharp/ArmoniK.Api.Core.Tests + include: + - projects: packages/csharp/ArmoniK.Api.Tests + framework: 6.x + - projects: packages/csharp/ArmoniK.Api.Core.Tests + framework: 7.x steps: - name: Checkout uses: actions/checkout@v2 @@ -52,12 +54,12 @@ jobs: - name: Install .NET Core uses: actions/setup-dotnet@v1 with: - dotnet-version: 7.x + dotnet-version: ${{ matrix.framework }} - name: Run tests run: | cd ${{ matrix.projects }} - dotnet test -f net7.0 --logger "trx;LogFileName=test-results.trx" + dotnet test -f ${{ matrix.framework }} --logger "trx;LogFileName=test-results.trx" - name: Test Report uses: dorny/test-reporter@v1