Github Actions Net5.0 (#1)

* Try integrating dotnet setup version into build matrix.

* Another attempt

* change matrix.

* don't add dotnet-sdk as main matrix variable

* remove test framework as well.

* or maybe not

* Fix copy paste mixup
This commit is contained in:
Serge Camille
2021-06-05 18:37:35 +02:00
committed by GitHub
parent 4541a7ebb7
commit bcde65120c

View File

@@ -18,11 +18,30 @@ jobs:
test-framework: [netcoreapp3.1, net5.0]
include:
- os: ubuntu-latest
test-framework: netcoreapp3.1
installSnap7: true
dotnet-sdk: '3.1.x'
- os: ubuntu-latest
test-framework: net5.0
installSnap7: true
dotnet-sdk: '5.0.x'
- os: macos-latest
test-framework: netcoreapp3.1
installSnap7: true
dotnet-sdk: '3.1.x'
- os: macos-latest
test-framework: net5.0
installSnap7: true
dotnet-sdk: '5.0.x'
- os: windows-latest
test-framework: netcoreapp3.1
dotnet-sdk: '3.1.x'
- os: windows-latest
test-framework: net5.0
dotnet-sdk: '5.0.x'
- os: windows-latest
test-framework: net452
dotnet-sdk: '5.0.x'
fail-fast: false
steps:
@@ -43,7 +62,7 @@ jobs:
- name: Setup Dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x' # SDK Version to use; x will use the latest version of the 3.1 channel
dotnet-version: ${{ matrix.dotnet-sdk }}
- name: Restore
run: dotnet restore S7.Net.UnitTest