From c3ea1e944b31bcd432dd1fc76ebbfa15254a50ad Mon Sep 17 00:00:00 2001 From: Dario Portmann Date: Fri, 19 Apr 2024 10:40:10 +0200 Subject: [PATCH] updated pipeline dotnet build --- .github/workflows/dotnet-build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml index 5227366..30e7886 100644 --- a/.github/workflows/dotnet-build.yml +++ b/.github/workflows/dotnet-build.yml @@ -4,19 +4,22 @@ on: [push] jobs: build: + runs-on: windows-latest strategy: matrix: - dotnet-version: [ '3.1.x', '6.0.x' ] + include: + - dotnet-version: '3.1.x' + tfm: 'netcoreapp3.1' steps: - uses: actions/checkout@v4 - name: Setup dotnet uses: actions/setup-dotnet@v3 - name: Install dependencies - run: dotnet restore + run: dotnet restore -p:TargetFramework=${{ matrix.tfm }} - name: Build - run: dotnet build + run: dotnet build --configuration Release --no-restore - name: Test with the dotnet CLI - run: dotnet test + run: dotnet test --no-restore --verbosity normal -f=${{ matrix.tfm }}