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