File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Worflow CI
2
- on : [push, pull_request]
2
+ on :
3
+ pull_request :
4
+ branches : [ "master" ]
5
+ push :
6
+ branches : [ "master"]
3
7
jobs :
4
- build :
5
- runs-on : ${{ matrix.os }}
8
+ setup :
9
+ runs-on : ${{matrix.os}}
6
10
strategy :
7
- fail-fast : false
8
11
matrix :
9
12
os : [ubuntu-latest]
10
13
net-version : ['8.x']
14
+ fail-fast : false
15
+ build :
16
+ needs : setup
17
+ runs-on : ${{ matrix.os }}
11
18
steps :
12
19
- uses : actions/checkout@v4
13
20
- name : Setup .NET 8.x
@@ -19,14 +26,13 @@ jobs:
19
26
- name : Build
20
27
run : dotnet build
21
28
test :
22
- needs : [build]
29
+ needs : [build,setup ]
23
30
runs-on : ${{matrix.os}}
24
- strategy :
25
- fail-fast : false
26
- matrix :
27
- os : [ubuntu-latest]
28
- net-version : ['8.x']
29
31
steps :
30
32
- uses : actions/checkout@v4
31
33
- name : Test
32
34
run : dotnet test --logger trx --results-directory "TestResults-${{ matrix.net-version }}"
35
+
36
+ versionize :
37
+ needs : [setup,build,test]
38
+ runs-on : ${{matrix.os}}
You can’t perform that action at this time.
0 commit comments