Skip to content

Commit

Permalink
fix(CI): Add .NET 8.0 as an additional version
Browse files Browse the repository at this point in the history
Didn't found a way to do it with the matrix. Used this approach: actions/setup-dotnet#240
  • Loading branch information
RainDance74 committed Jan 29, 2025
1 parent f20301e commit ee545fc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ env:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['9.0.x' ]

steps:
- name: Checkout
Expand All @@ -25,10 +22,12 @@ jobs:
git fetch
git pull
- name: Setup .NET ${{ matrix.dotnet-version }}
- name: Setup target .NET frameworks
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: |
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore "${{ env.SOLUTION }}"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/dotnet-publish-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ env:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['9.0.x' ]

steps:
- name: Checkout
Expand All @@ -24,10 +21,12 @@ jobs:
run: |
git fetch
git pull
- name: Setup .NET ${{ matrix.dotnet-version }}
- name: Setup target .NET frameworks
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: |
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore "${{ env.SOLUTION }}"
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,17 @@ env:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['9.0.x' ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup .NET ${{ matrix.dotnet-version }}
- name: Setup target .NET frameworks
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
dotnet-version: |
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore "${{ env.SOLUTION }}"
Expand Down

0 comments on commit ee545fc

Please sign in to comment.