From 49aed0775a02a5b7109fa3497d7103dfa65b7a72 Mon Sep 17 00:00:00 2001 From: Romfos Date: Mon, 9 Oct 2023 00:00:35 +0200 Subject: [PATCH] Update build_and_test.yml --- .github/workflows/build_and_test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4bf12834..ef2dc77c 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -11,7 +11,9 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 7.0.x + dotnet-version: | + 6.0.x + 7.0.x - name: Restore dependencies run: dotnet restore @@ -44,7 +46,9 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: 6.0.x + dotnet-version: | + 6.0.x + 7.0.x - name: Restore build cache uses: actions/cache/restore@v3 @@ -54,6 +58,5 @@ jobs: key: ${{github.run_number}} - name: Test - working-directory: ./bin/Debug/NSubstitute.Acceptance.Specs/${{ matrix.tfm }} - run: dotnet test -f ${{ matrix.tfm }} --no-build --no-restore NSubstitute.Acceptance.Specs.dll + run: dotnet test -f ${{ matrix.tfm }} --no-build --no-restore bin/Debug/NSubstitute.Acceptance.Specs/${{ matrix.tfm }}/NSubstitute.Acceptance.Specs.dll