diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 16e7a337..433f5d26 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -71,14 +71,14 @@ jobs: artifacts: ${{ github.workspace }}/artifacts strategy: matrix: - os: [windows-latest, ubuntu-22.04, macos-latest] + os: [windows-latest, ubuntu-20.04, macos-latest] test-framework: [net6.0, net7.0] include: - - os: ubuntu-22.04 + - os: ubuntu-20.04 test-framework: net6.0 installSnap7: true dotnet-sdk: '6.x' - - os: ubuntu-22.04 + - os: ubuntu-20.04 test-framework: net7.0 installSnap7: true dotnet-sdk: '7.x' @@ -119,7 +119,9 @@ jobs: - name: Setup Dotnet uses: actions/setup-dotnet@v1 with: - dotnet-version: ${{ matrix.dotnet-sdk }} + dotnet-version: | + ${{ matrix.dotnet-sdk }} + 7.x - name: Nuget Cache uses: actions/cache@v2 @@ -129,12 +131,9 @@ jobs: key: ${{ runner.os }}-${{ matrix.test-framework }}-nuget-${{ hashFiles('**/packages.lock.json') }} restore-keys: | ${{ runner.os }}-${{ matrix.test-framework }}-nuget - - - name: Restore - run: dotnet restore S7.Net.UnitTest - name: Test - run: dotnet test --no-restore --nologo --verbosity normal --logger GitHubActions --framework ${{ matrix.test-framework }} + run: dotnet test --nologo --verbosity normal --logger GitHubActions --framework ${{ matrix.test-framework }} deploy: # Publish only when creating a GitHub Release diff --git a/S7.Net.UnitTest/S7.Net.UnitTest.csproj b/S7.Net.UnitTest/S7.Net.UnitTest.csproj index eb63e48c..3a67af5a 100644 --- a/S7.Net.UnitTest/S7.Net.UnitTest.csproj +++ b/S7.Net.UnitTest/S7.Net.UnitTest.csproj @@ -1,7 +1,7 @@  - net452;netcoreapp3.1;net5.0 + net462;net6.0;net7.0 true Properties\S7.Net.snk diff --git a/S7.Net/S7.Net.csproj b/S7.Net/S7.Net.csproj index d41f08fe..bfe62f93 100644 --- a/S7.Net/S7.Net.csproj +++ b/S7.Net/S7.Net.csproj @@ -1,7 +1,7 @@  - net452;netstandard2.0;netstandard1.3;net5.0 + net452;net462;netstandard2.0;netstandard1.3;net5.0;net6.0;net7.0 true Properties\S7.Net.snk S7.Net.UnitTest @@ -23,11 +23,11 @@ true - + NET_FULL - +