@@ -23,95 +23,43 @@ permissions:
2323
2424jobs :
2525 build :
26- name : 🛠️ Build
27- runs-on : ubuntu-24.04
28- timeout-minutes : 15
26+ name : call-build
2927 strategy :
3028 matrix :
3129 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 }}
6637
6738 pack :
68- name : 📦 Pack
69- runs-on : ubuntu-24.04
70- timeout-minutes : 15
39+ name : call-pack
40+ needs : [build]
7141 strategy :
7242 matrix :
7343 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 }}
8749
8850 test :
89- name : 🧪 Test
51+ name : call-test
9052 needs : [build]
9153 strategy :
9254 fail-fast : false
9355 matrix :
9456 os : [ubuntu-24.04, windows-2022]
9557 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
11563
11664 sonarcloud :
11765 name : call-sonarcloud
14189 deploy :
14290 if : github.event_name != 'pull_request'
14391 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
14694 with :
14795 version : ${{ needs.build.outputs.version }}
14896 environment : Production
0 commit comments