Skip to content

Commit

Permalink
Update workflows to target multiple .NET versions for tests
Browse files Browse the repository at this point in the history
Added support for .NET 6.0, 8.0, and 9.0 in the release workflow, ensuring compatibility checks across multiple frameworks. Adjusted test steps to run separately for each .NET version. This enhances flexibility and ensures broader runtime support.
  • Loading branch information
RemyDuijkeren committed Jan 16, 2025
1 parent 0505b1d commit 4f59bbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
dotnet-version: |
6.0.x
8.0.x
9.0.x # All target .NET SDKs for testing
9.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
env:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ jobs:
- name: 🛠️ Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
dotnet-version: |
6.0.x
8.0.x
9.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
env:
Expand All @@ -38,7 +41,10 @@ jobs:
run: dotnet build -c Release --no-restore

- name: 🚦 Test
run: dotnet test -c Release -l trx --results-directory ./artifacts/ --no-build
run: |
dotnet test -f net6.0 -c Release -l trx --results-directory ./artifacts/ --no-build
dotnet test -f net8.0 -c Release -l trx --results-directory ./artifacts/ --no-build
dotnet test -f net9.0 -c Release -l trx --results-directory ./artifacts/ --no-build
- name: 📋 Test reporter
uses: dorny/test-reporter@v1
Expand Down

0 comments on commit 4f59bbf

Please sign in to comment.