Skip to content

Commit b732670

Browse files
committed
Combine build workflow
1 parent 00f712d commit b732670

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ on:
1010
jobs:
1111
build:
1212
name: Build & Test
13-
runs-on: ubuntu-24.04
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest]
1417

1518
steps:
1619
- name: Checkout
@@ -27,10 +30,16 @@ jobs:
2730
- name: Build
2831
run: dotnet build -c Release
2932

33+
- name: Run tests without Coverage
34+
if: startsWith(matrix.os, 'windows')
35+
run: dotnet test -c Release -p:CollectCoverage=false
36+
3037
- name: Run tests with Coverage
38+
if: startsWith(matrix.os, 'ubuntu')
3139
run: dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
3240

3341
- name: Publish to Codecov
42+
if: startsWith(matrix.os, 'ubuntu')
3443
uses: codecov/codecov-action@v5
3544
with:
3645
fail_ci_if_error: true

0 commit comments

Comments
 (0)