@@ -23,92 +23,40 @@ permissions:
2323
2424jobs :
2525 build :
26- name : 🛠️ Build
27- runs-on : ubuntu-22.04
26+ name : call-build
2827 strategy :
2928 matrix :
3029 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
6535
6636 pack :
67- name : 📦 Pack
68- runs-on : ubuntu-22.04
37+ name : call-pack
38+ needs : [build]
6939 strategy :
7040 matrix :
7141 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 }}
8546
8647 test :
87- name : 🧪 Test
48+ name : call-test
8849 needs : [build]
8950 strategy :
9051 fail-fast : false
9152 matrix :
92- os : [ubuntu-22 .04, windows-2022]
53+ os : [ubuntu-24 .04, windows-2022]
9354 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
11260
11361 sonarcloud :
11462 name : call-sonarcloud
13886 deploy :
13987 if : github.event_name != 'pull_request'
14088 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
14391 with :
14492 version : ${{ needs.build.outputs.version }}
14593 environment : Production
0 commit comments