From 37709f941e4371cb3d99dd16f5739c9e1b9d7d55 Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Mon, 25 Jan 2021 15:34:41 +0100 Subject: [PATCH] test and build framework can be different --- .github/workflows/build-and-test.yml | 31 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 4da7813a8a..579a547ea6 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -15,39 +15,48 @@ jobs: matrix: options: - os: ubuntu-latest - framework: net5.0 + framework-build: netcoreapp3.1 + framework-test: net5.0 runtime: -x64 codecov: false - os: macos-latest - framework: net5.0 + framework-build: netcoreapp3.1 + framework-test: net5.0 runtime: -x64 codecov: false - os: windows-latest - framework: net5.0 + framework-build: netcoreapp3.1 + framework-test: net5.0 runtime: -x64 codecov: false - os: ubuntu-latest - framework: netcoreapp3.1 + framework-build: netcoreapp3.1 + framework-test: netcoreapp3.1 runtime: -x64 codecov: true - os: macos-latest - framework: netcoreapp3.1 + framework-build: netcoreapp3.1 + framework-test: netcoreapp3.1 runtime: -x64 codecov: false - os: windows-latest - framework: netcoreapp3.1 + framework-build: netcoreapp3.1 + framework-test: netcoreapp3.1 runtime: -x64 codecov: false - os: windows-latest - framework: netcoreapp2.1 + framework-build: netcoreapp2.1 + framework-test: netcoreapp2.1 runtime: -x64 codecov: false - os: windows-latest - framework: net472 + framework-build: net472 + framework-test: net472 runtime: -x64 codecov: false - os: windows-latest - framework: net472 + framework-build: net472 + framework-test: net472 runtime: -x86 codecov: false @@ -78,11 +87,11 @@ jobs: - name: Build shell: pwsh - run: ./ci-build.ps1 "${{matrix.options.framework}}" + run: ./ci-build.ps1 "${{matrix.options.framework-build}}" - name: Test shell: pwsh - run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}" + run: ./ci-test.ps1 "${{matrix.options.os}}" "${{matrix.options.framework-test}}" "${{matrix.options.runtime}}" "${{matrix.options.codecov}}" env: CI: True XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit