fix: update dotnet workflow for target framework

This commit is contained in:
ikpil 2024-01-21 20:19:50 +09:00
parent 96e8b12772
commit ec41fea35a
1 changed files with 4 additions and 4 deletions

View File

@ -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