Skip to content

Commit 1f33e70

Browse files
committed
Attempt to fix builds
1 parent 4fbe57f commit 1f33e70

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/cicd.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,30 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
dotnet-version: ['6.0.x', '7.0.x', '8.0.x']
19+
include:
20+
- dotnet-version: '6.0.x'
21+
dotnet-moniker: 'net6.0'
22+
- dotnet-version: '7.0.x'
23+
dotnet-moniker: 'net7.0'
24+
- dotnet-version: '8.0.x'
25+
dotnet-moniker: 'net8.0'
2026

2127
steps:
2228
- uses: actions/checkout@v4
2329

24-
- name: "Setup .NET Core"
30+
- name: "Setup .NET ${{ matrix.dotnet-version }}"
2531
uses: actions/setup-dotnet@v4
2632
with:
2733
dotnet-version: ${{ matrix.dotnet-version }}
2834

2935
- name: "Restore"
30-
run: dotnet restore
36+
run: dotnet restore --framework ${{ matrix.dotnet-moniker }}
3137

3238
- name: "Build"
33-
run: dotnet build -c Release --no-restore
39+
run: dotnet build -c Release --no-restore --framework ${{ matrix.dotnet-moniker }}
3440

3541
- name: "Test"
36-
run: dotnet test -c Release --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*"
42+
run: dotnet test -c Release --no-restore --no-build --verbosity normal --framework ${{ matrix.dotnet-moniker }} /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*"
3743

3844
- name: Upload coverage reports to Codecov
3945
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)