@@ -23,92 +23,40 @@ permissions:
23
23
24
24
jobs :
25
25
build :
26
- name : 🛠️ Build
27
- runs-on : ubuntu-22.04
26
+ name : call-build
28
27
strategy :
29
28
matrix :
30
29
configuration : [Debug, Release]
31
- framework : [net9.0,net8.0]
32
- outputs :
33
- version : ${{ steps.minver-calculate.outputs.version }}
34
- steps :
35
- - name : Checkout
36
- uses : codebeltnet/git-checkout@v1
37
-
38
- - name : Install .NET
39
- uses : codebeltnet/install-dotnet@v1
40
- with :
41
- includePreview : true
42
-
43
- - name : Install MinVer
44
- uses : codebeltnet/dotnet-tool-install-minver@v1
45
-
46
- - id : minver-calculate
47
- name : Calculate Version
48
- uses : codebeltnet/minver-calculate@v2
49
-
50
- - name : Download sharedkernel.snk file
51
- uses : codebeltnet/gcp-download-file@v1
52
- with :
53
- serviceAccountKey : ${{ secrets.GCP_TOKEN }}
54
- bucketName : ${{ secrets.GCP_BUCKETNAME }}
55
- objectName : sharedkernel.snk
56
-
57
- - name : Restore Dependencies
58
- uses : codebeltnet/dotnet-restore@v2
59
-
60
- - name : Build for ${{ matrix.framework }} (${{ matrix.configuration }})
61
- uses : codebeltnet/dotnet-build@v2
62
- with :
63
- configuration : ${{ matrix.configuration }}
64
- framework : ${{ matrix.framework }}
30
+ uses : codebeltnet/jobs-dotnet-build/.github/workflows/default.yml@v2
31
+ with :
32
+ configuration : ${{ matrix.configuration }}
33
+ strong-name-key-filename : sharedkernel.snk
34
+ secrets : inherit
65
35
66
36
pack :
67
- name : 📦 Pack
68
- runs-on : ubuntu-22.04
37
+ name : call-pack
38
+ needs : [build]
69
39
strategy :
70
40
matrix :
71
41
configuration : [Debug, Release]
72
- needs : [build]
73
- steps :
74
- - name : Install .NET
75
- uses : codebeltnet/install-dotnet@v1
76
- with :
77
- includePreview : true
78
-
79
- - name : Pack for ${{ matrix.configuration }}
80
- uses : codebeltnet/dotnet-pack@v2
81
- with :
82
- configuration : ${{ matrix.configuration }}
83
- uploadPackedArtifact : true
84
- version : ${{ needs.build.outputs.version }}
42
+ uses : codebeltnet/jobs-dotnet-pack/.github/workflows/default.yml@v2
43
+ with :
44
+ configuration : ${{ matrix.configuration }}
45
+ version : ${{ needs.build.outputs.version }}
85
46
86
47
test :
87
- name : 🧪 Test
48
+ name : call-test
88
49
needs : [build]
89
50
strategy :
90
51
fail-fast : false
91
52
matrix :
92
- os : [ubuntu-22 .04, windows-2022]
53
+ os : [ubuntu-24 .04, windows-2022]
93
54
configuration : [Debug, Release]
94
- runs-on : ${{ matrix.os }}
95
- steps :
96
- - name : Checkout
97
- uses : codebeltnet/git-checkout@v1
98
-
99
- - name : Install .NET
100
- uses : codebeltnet/install-dotnet@v1
101
- with :
102
- includePreview : true
103
-
104
- - name : Install .NET Tool - Report Generator
105
- uses : codebeltnet/dotnet-tool-install-reportgenerator@v1
106
-
107
- - name : Test with ${{ matrix.configuration }} build
108
- uses : codebeltnet/dotnet-test@v3
109
- with :
110
- configuration : ${{ matrix.configuration }}
111
- buildSwitches : -p:SkipSignAssembly=true
55
+ uses : codebeltnet/jobs-dotnet-test/.github/workflows/default.yml@v2
56
+ with :
57
+ configuration : ${{ matrix.configuration }}
58
+ runs-on : ${{ matrix.os }}
59
+ build-switches : -p:SkipSignAssembly=true
112
60
113
61
sonarcloud :
114
62
name : call-sonarcloud
138
86
deploy :
139
87
if : github.event_name != 'pull_request'
140
88
name : call-nuget
141
- needs : [build,pack,test,sonarcloud,codecov,codeql]
142
- uses : codebeltnet/jobs-nuget/.github/workflows/default.yml@v1
89
+ needs : [build, pack, test, sonarcloud, codecov, codeql]
90
+ uses : codebeltnet/jobs-nuget-push /.github/workflows/default.yml@v1
143
91
with :
144
92
version : ${{ needs.build.outputs.version }}
145
93
environment : Production
0 commit comments