Skip to content

Commit

Permalink
fixup! Build for each framework independently
Browse files Browse the repository at this point in the history
  • Loading branch information
nachtjasmin committed Dec 1, 2023
1 parent e315a0b commit 54c2d58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
strategy:
matrix:
dotnet-version: ["net6.0", "net8.0"]
dotnet-version: ["6.0.x", "8.0.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "${{ matrix.dotnet-version }}"
cache: true
cache-dependency-path: src/**/packages.lock.json
- run: dotnet restore --locked-mode
- name: Run tests with coverage
run: dotnet test --framework ${{ matrix.dotnet-version }} --no-restore /p:CollectCoverage=true --logger trx --results-directory "test-results"
run: dotnet test --no-restore /p:CollectCoverage=true --logger trx --results-directory "test-results"
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
Expand Down

0 comments on commit 54c2d58

Please sign in to comment.