Skip to content

Commit

Permalink
ci(dotnet): run framework-specific tests separately
Browse files Browse the repository at this point in the history
This change also specifies multiple dotnet-version values for the setup-dotnet step.
  • Loading branch information
oliverbooth committed Apr 1, 2023
1 parent 8a4e053 commit 9df0fde
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/dotnet.yml
Expand Up @@ -18,7 +18,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
dotnet-version: |
3.1.x
6.0.x
7.0.x
- name: Add NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
Expand All @@ -29,5 +32,11 @@ jobs:
- name: Build
run: dotnet build --no-restore --configuration Release

- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release
- name: Test .NET Core 3.1
run: dotnet test --no-build --verbosity normal --configuration Release --framework netcoreapp3.1

- name: Test .NET 6
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0

- name: Test .NET 7
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0

0 comments on commit 9df0fde

Please sign in to comment.