From 3230b7d031b138c81a6e72f966de42779b251851 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 4 Jun 2022 18:41:47 +0200 Subject: [PATCH] Fix the build. --- .github/workflows/build-and-test.yml | 21 ++++++++----------- .../SharedInfrastructure.Tests.csproj | 2 +- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index bac84d6..1af83ce 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -40,10 +40,6 @@ jobs: framework: netcoreapp2.1 runtime: -x64 codecov: false - - os: windows-latest - framework: netcoreapp2.0 - runtime: -x64 - codecov: false - os: windows-latest framework: net472 runtime: -x64 @@ -52,14 +48,6 @@ jobs: framework: net472 runtime: -x86 codecov: false - - os: windows-latest - framework: net46 - runtime: -x64 - codecov: false - - os: windows-latest - framework: net46 - runtime: -x86 - codecov: false runs-on: ${{matrix.options.os}} if: "!contains(github.event.head_commit.message, '[skip ci]')" @@ -86,6 +74,15 @@ jobs: key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }} restore-keys: ${{ runner.os }}-nuget- + - name: DotNet Setup + uses: actions/setup-dotnet@v1 + with: + dotnet-version: | + 6.0.x + 5.0.x + 3.1.x + 2.1.x + - name: Build shell: pwsh run: ./ci-build.ps1 "${{matrix.options.framework}}" diff --git a/tests/SharedInfrastructure.Tests/SharedInfrastructure.Tests.csproj b/tests/SharedInfrastructure.Tests/SharedInfrastructure.Tests.csproj index b6bb6a2..42f2907 100644 --- a/tests/SharedInfrastructure.Tests/SharedInfrastructure.Tests.csproj +++ b/tests/SharedInfrastructure.Tests/SharedInfrastructure.Tests.csproj @@ -1,7 +1,7 @@ - net5.0;netcoreapp3.1;netcoreapp2.1;netcoreapp2.0;net472;net46 + net5.0;netcoreapp3.1;netcoreapp2.1;net472 SharedInfrastructure.Tests SharedInfrastructure.Tests