Skip to content

Commit 98f4319

Browse files
Update release-and-publish.yml
1 parent aed9b07 commit 98f4319

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release-and-publish.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest]
@@ -24,20 +24,20 @@ jobs:
2424
run: dotnet restore
2525
- name: Build
2626
run: dotnet build
27-
2827
test:
29-
needs: build
30-
runs-on: ubuntu-latest
28+
needs : build
29+
runs-on: ${{ matrix.os }}
3130
strategy:
3231
matrix:
3332
os: [ubuntu-latest]
3433
net-version: ['8.x']
3534
fail-fast: false
3635
steps:
37-
- uses: actions/checkout@v4
38-
- name: Setup .NET ${{ matrix['net-version'] }}
39-
uses: actions/setup-dotnet@v3
40-
with:
41-
dotnet-version: ${{ matrix['net-version'] }}
4236
- name: Test
4337
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.net-version }}"
38+
- name: Upload dotnet test results
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: dotnet-results-${{ matrix.dotnet-version }}
42+
path: TestResults-${{ matrix.dotnet-version }}
43+
if: ${{ always() }}

0 commit comments

Comments
 (0)