Skip to content

Commit

Permalink
Updated AL-Go System Files
Browse files Browse the repository at this point in the history
  • Loading branch information
freddydk committed Sep 16, 2023
1 parent bda469c commit 6fa2199
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/AL-Go-Settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"excludeEnvironments": [
"test"
],
"templateSha": "63c2cf4a9847a8d49979cd8b0ed80c0126031b77"
"templateSha": "a77a6f09dcb1f14dae4e0fc585df8a08347f9909"
}
12 changes: 12 additions & 0 deletions .github/workflows/CICD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ jobs:

Build1:
needs: [ Initialization, CustomJob-MyJob, CustomJob-MyJob1 ]
needs: [ Initialization ]
useArtifactCache: true
if: (!failure()) && (!cancelled()) && fromJson(needs.Initialization.outputs.buildOrderJson)[0].projectsCount > 0
strategy:
matrix:
Expand All @@ -152,6 +154,10 @@ jobs:

Build2:
needs: [ Initialization, Build1, CustomJob-MyJob, CustomJob-MyJob1 ]
needs: [ Initialization ]
useArtifactCache: true
needs: [ Initialization ]
useArtifactCache: true
if: (!failure()) && (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[1].projectsCount > 0
strategy:
matrix:
Expand All @@ -176,6 +182,12 @@ jobs:

Build:
needs: [ Initialization, Build2, Build1, CustomJob-MyJob, CustomJob-MyJob1 ]
needs: [ Initialization, Build1 ]
useArtifactCache: true
needs: [ Initialization ]
useArtifactCache: true
needs: [ Initialization ]
useArtifactCache: true
if: (!failure()) && (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[2].projectsCount > 0
strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/Current.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

Build1:
needs: [ Initialization ]
needs: [ Initialization ]
artifactsNameSuffix: 'Current'
if: (!failure()) && (!cancelled()) && fromJson(needs.Initialization.outputs.buildOrderJson)[0].projectsCount > 0
strategy:
matrix:
Expand All @@ -82,6 +84,10 @@ jobs:

Build2:
needs: [ Initialization, Build1 ]
needs: [ Initialization ]
artifactsNameSuffix: 'Current'
needs: [ Initialization ]
artifactsNameSuffix: 'Current'
if: (!failure()) && (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[1].projectsCount > 0
strategy:
matrix:
Expand All @@ -104,6 +110,12 @@ jobs:

Build:
needs: [ Initialization, Build2, Build1 ]
needs: [ Initialization, Build1 ]
artifactsNameSuffix: 'Current'
needs: [ Initialization ]
artifactsNameSuffix: 'Current'
needs: [ Initialization ]
artifactsNameSuffix: 'Current'
if: (!failure()) && (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[2].projectsCount > 0
strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/NextMajor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

Build1:
needs: [ Initialization ]
needs: [ Initialization ]
artifactsNameSuffix: 'NextMajor'
if: (!failure()) && (!cancelled()) && fromJson(needs.Initialization.outputs.buildOrderJson)[0].projectsCount > 0
strategy:
matrix:
Expand All @@ -82,6 +84,10 @@ jobs:

Build2:
needs: [ Initialization, Build1 ]
needs: [ Initialization ]
artifactsNameSuffix: 'NextMajor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMajor'
if: (!failure()) && (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[1].projectsCount > 0
strategy:
matrix:
Expand All @@ -104,6 +110,12 @@ jobs:

Build:
needs: [ Initialization, Build2, Build1 ]
needs: [ Initialization, Build1 ]
artifactsNameSuffix: 'NextMajor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMajor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMajor'
if: (!failure()) && (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[2].projectsCount > 0
strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/NextMinor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:

Build1:
needs: [ Initialization ]
needs: [ Initialization ]
artifactsNameSuffix: 'NextMinor'
if: (!failure()) && (!cancelled()) && fromJson(needs.Initialization.outputs.buildOrderJson)[0].projectsCount > 0
strategy:
matrix:
Expand All @@ -82,6 +84,10 @@ jobs:

Build2:
needs: [ Initialization, Build1 ]
needs: [ Initialization ]
artifactsNameSuffix: 'NextMinor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMinor'
if: (!failure()) && (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[1].projectsCount > 0
strategy:
matrix:
Expand All @@ -104,6 +110,12 @@ jobs:

Build:
needs: [ Initialization, Build2, Build1 ]
needs: [ Initialization, Build1 ]
artifactsNameSuffix: 'NextMinor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMinor'
needs: [ Initialization ]
artifactsNameSuffix: 'NextMinor'
if: (!failure()) && (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[2].projectsCount > 0
strategy:
matrix:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/PullRequestHandler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ jobs:

Build1:
needs: [ Initialization ]
needs: [ Initialization ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
if: (!failure()) && (!cancelled()) && fromJson(needs.Initialization.outputs.buildOrderJson)[0].projectsCount > 0
strategy:
matrix:
Expand All @@ -99,6 +101,10 @@ jobs:

Build2:
needs: [ Initialization, Build1 ]
needs: [ Initialization ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
needs: [ Initialization ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
if: (!failure()) && (!cancelled()) && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[1].projectsCount > 0
strategy:
matrix:
Expand All @@ -121,6 +127,12 @@ jobs:

Build:
needs: [ Initialization, Build2, Build1 ]
needs: [ Initialization, Build1 ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
needs: [ Initialization ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
needs: [ Initialization ]
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
if: (!failure()) && (!cancelled()) && (needs.Build2.result == 'success' || needs.Build2.result == 'skipped') && (needs.Build1.result == 'success' || needs.Build1.result == 'skipped') && fromJson(needs.Initialization.outputs.buildOrderJson)[2].projectsCount > 0
strategy:
matrix:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/_BuildALGoProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ jobs:
buildMode: ${{ inputs.buildMode }}
projectsDependenciesJson: ${{ inputs.projectDependenciesJson }}

- name: PreBuild.Start
if: false
run: |
# All steps between PreBuild.Start and PreBuild.End will be preserved when updating AL-Go System Files
# Note that changes to the base workflow might cause your steps in this section to break, please update them accordingly
- name: CustomStepPreBuild1
if: false
run: |
Expand Down

0 comments on commit 6fa2199

Please sign in to comment.