Skip to content

Commit

Permalink
Update dotnet.yml: Split target frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
raman-m authored Jan 22, 2025
1 parent 56226f5 commit f65ce67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '8.0.x', '9.0.x' ]
dotnet-version: [ '8.0', '9.0' ]

steps:
- uses: actions/checkout@v4
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: ${{ matrix.dotnet-version }}.x
- name: Display dotnet version
run: dotnet --version
- name: Restore dependencies
run: dotnet restore ./Ocelot.sln
run: dotnet restore ./Ocelot.sln -p:TargetFramework=net${{ matrix.dotnet-version }}
- name: Build
run: dotnet build --no-restore ./Ocelot.sln
run: dotnet build --no-restore ./Ocelot.sln --framework net${{ matrix.dotnet-version }}
- name: Test
run: dotnet test --no-build --verbosity normal ./Ocelot.sln
run: dotnet test --no-build --verbosity normal ./Ocelot.sln --framework net${{ matrix.dotnet-version }}

0 comments on commit f65ce67

Please sign in to comment.