From ec41fea35afc067a2a1078796c3f64bf69f37756 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 21 Jan 2024 20:19:50 +0900 Subject: [PATCH] fix: update dotnet workflow for target framework --- .github/workflows/dotnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6de03a3..80f152c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -28,7 +28,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - dotnet-version: [ '6.x', '7.x', '8.x' ] + dotnet-version: [ '6', '7', '8' ] os: [ windows-latest, ubuntu-latest, macos-latest ] steps: @@ -39,13 +39,13 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.x' + dotnet-version: ${{ matrix.dotnet }}.x - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build -c Release --no-restore + run: dotnet build -c Release --no-restore --framework net${{ matrix.dotnet }}.0 - name: Test - run: dotnet test -c Release --no-build --verbosity normal + run: dotnet test -c Release --no-build --verbosity normal --framework net${{ matrix.dotnet }}.0