File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-latest
11
+ runs-on : ${{ matrix.os }}
12
12
strategy :
13
13
matrix :
14
14
os : [ubuntu-latest]
@@ -24,20 +24,20 @@ jobs:
24
24
run : dotnet restore
25
25
- name : Build
26
26
run : dotnet build
27
-
28
27
test :
29
- needs : build
30
- runs-on : ubuntu-latest
28
+ needs : build
29
+ runs-on : ${{ matrix.os }}
31
30
strategy :
32
31
matrix :
33
32
os : [ubuntu-latest]
34
33
net-version : ['8.x']
35
34
fail-fast : false
36
35
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'] }}
42
36
- name : Test
43
37
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() }}
You can’t perform that action at this time.
0 commit comments