Skip to content

Commit 8e38233

Browse files
CBS-BC-ATCBS-BC-AT
authored andcommitted
Deploying AL-Go from cegeka (08e83f7706286c7f7927c8e20c205d481c95dc77) to cegeka/preview
1 parent 5d7cd8b commit 8e38233

27 files changed

+1385
-281
lines changed

.AL-Go/cloudDevEnv.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Write-Host -ForegroundColor Yellow @'
4242

4343
$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
4444
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
45-
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/Github-Helper.psm1' -folder $tmpFolder
46-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/AL-Go-Helper.ps1' -folder $tmpFolder
47-
DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/Packages.json' -folder $tmpFolder | Out-Null
45+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/Github-Helper.psm1' -folder $tmpFolder
46+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/AL-Go-Helper.ps1' -folder $tmpFolder
47+
DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/Packages.json' -folder $tmpFolder | Out-Null
4848

4949
Import-Module $GitHubHelperPath
5050
. $ALGoHelperPath -local

.AL-Go/localDevEnv.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ Write-Host -ForegroundColor Yellow @'
4646

4747
$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())"
4848
New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null
49-
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/Github-Helper.psm1' -folder $tmpFolder
50-
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/AL-Go-Helper.ps1' -folder $tmpFolder
51-
DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/v6.0/Packages.json' -folder $tmpFolder | Out-Null
49+
$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/Github-Helper.psm1' -folder $tmpFolder
50+
$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/AL-Go-Helper.ps1' -folder $tmpFolder
51+
DownloadHelperFile -url 'https://raw.githubusercontent.com/CBS-BC-AT/AL-Go-Actions/cegeka/preview/Packages.json' -folder $tmpFolder | Out-Null
5252

5353
Import-Module $GitHubHelperPath
5454
. $ALGoHelperPath -local

.AL-Go/settings.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"country": "us",
2+
"$schema": "https://raw.githubusercontent.com/microsoft/AL-Go/v6.3/Schema/algosettingssyntax.json",
3+
"country": "at",
34
"appSourceCopMandatoryAffixes": [
45
"<affix>"
56
],
67
"appFolders": [],
7-
"testFolders": [],
8-
"bcptTestFolders": []
8+
"bcptTestFolders": [],
9+
"testFolders": []
910
}

.github/AL-Go-Settings.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/AL-Go/v6.3/Schema/algoreposettingssyntax.json",
3+
"buildModes": [
4+
"Default"
5+
],
6+
"customCodeCops": [
7+
"https://github.com/StefanMaron/BusinessCentral.LinterCop/releases/latest/download/BusinessCentral.LinterCop.current.dll"
8+
],
9+
"doNotPublishApps": true,
10+
"enableCodeCop": true,
11+
"enablePerTenantExtensionCop": true,
12+
"enableUICop": true,
13+
"githubRunner": "ubuntu-latest",
14+
"rulesetFile": "CegekaAT.ruleset.json",
15+
"runs-on": "ubuntu-latest",
16+
"skipUpgrade": true,
17+
"templateUrl": "https://github.com/CBS-BC-AT/AL-Go-AppSource@cegeka",
18+
"templateFiles": [
19+
".github/DeployTo*.ps1",
20+
".schemas/*"
21+
],
222
"type": "AppSource App",
3-
"templateUrl": "https://github.com/CBS-BC-AT/AL-Go-AppSource@v6.0"
23+
"UpdateGitHubGoSystemFilesSchedule": "0 2 * * 2",
24+
"useCompilerFolder": true,
25+
"vsixFile": "latest"
426
}

.github/RELEASENOTES.copy.md

Lines changed: 149 additions & 11 deletions
Large diffs are not rendered by default.

.github/workflows/AddExistingAppOrTestApp.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,35 +41,35 @@ jobs:
4141
runs-on: [ windows-latest ]
4242
steps:
4343
- name: Dump Workflow Information
44-
uses: CBS-BC-AT/AL-Go-Actions/DumpWorkflowInfo@v6.0
44+
uses: CBS-BC-AT/AL-Go-Actions/DumpWorkflowInfo@cegeka/preview
4545
with:
4646
shell: powershell
4747

4848
- name: Checkout
49-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050

5151
- name: Initialize the workflow
5252
id: init
53-
uses: CBS-BC-AT/AL-Go-Actions/WorkflowInitialize@v6.0
53+
uses: CBS-BC-AT/AL-Go-Actions/WorkflowInitialize@cegeka/preview
5454
with:
5555
shell: powershell
5656

5757
- name: Read settings
58-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
58+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
5959
with:
6060
shell: powershell
6161

6262
- name: Read secrets
6363
id: ReadSecrets
64-
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@v6.0
64+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
6565
with:
6666
shell: powershell
6767
gitHubSecrets: ${{ toJson(secrets) }}
6868
getSecrets: 'TokenForPush'
6969
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}'
7070

7171
- name: Add existing app
72-
uses: CBS-BC-AT/AL-Go-Actions/AddExistingApp@v6.0
72+
uses: CBS-BC-AT/AL-Go-Actions/AddExistingApp@cegeka/preview
7373
with:
7474
shell: powershell
7575
token: ${{ steps.ReadSecrets.outputs.TokenForPush }}
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: Finalize the workflow
8181
if: always()
82-
uses: CBS-BC-AT/AL-Go-Actions/WorkflowPostProcess@v6.0
82+
uses: CBS-BC-AT/AL-Go-Actions/WorkflowPostProcess@cegeka/preview
8383
env:
8484
GITHUB_TOKEN: ${{ github.token }}
8585
with:

.github/workflows/CICD.yaml

Lines changed: 60 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,53 @@ jobs:
3939
githubRunner: ${{ steps.ReadSettings.outputs.GitHubRunnerJson }}
4040
githubRunnerShell: ${{ steps.ReadSettings.outputs.GitHubRunnerShell }}
4141
projects: ${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}
42+
skippedProjects: ${{ steps.determineProjectsToBuild.outputs.SkippedProjectsJson }}
4243
projectDependenciesJson: ${{ steps.determineProjectsToBuild.outputs.ProjectDependenciesJson }}
4344
buildOrderJson: ${{ steps.determineProjectsToBuild.outputs.BuildOrderJson }}
44-
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
45+
baselineWorkflowRunId: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowRunId }}
46+
baselineWorkflowSHA: ${{ steps.determineProjectsToBuild.outputs.BaselineWorkflowSHA }}
4547
workflowDepth: ${{ steps.DetermineWorkflowDepth.outputs.WorkflowDepth }}
48+
powerPlatformSolutionFolder: ${{ steps.DeterminePowerPlatformSolutionFolder.outputs.powerPlatformSolutionFolder }}
4649
steps:
4750
- name: Dump Workflow Information
48-
uses: CBS-BC-AT/AL-Go-Actions/DumpWorkflowInfo@v6.0
51+
uses: CBS-BC-AT/AL-Go-Actions/DumpWorkflowInfo@cegeka/preview
4952
with:
5053
shell: powershell
5154

5255
- name: Checkout
53-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
56+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5457
with:
5558
lfs: true
5659

5760
- name: Initialize the workflow
5861
id: init
59-
uses: CBS-BC-AT/AL-Go-Actions/WorkflowInitialize@v6.0
62+
uses: CBS-BC-AT/AL-Go-Actions/WorkflowInitialize@cegeka/preview
6063
with:
6164
shell: powershell
6265

6366
- name: Read settings
6467
id: ReadSettings
65-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
68+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
69+
with:
70+
shell: powershell
71+
get: type,powerPlatformSolutionFolder,useGitSubmodules
72+
73+
- name: Read submodules token
74+
id: ReadSubmodulesToken
75+
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
76+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
6677
with:
6778
shell: powershell
68-
get: type, powerPlatformSolutionFolder
79+
gitHubSecrets: ${{ toJson(secrets) }}
80+
getSecrets: '-gitSubmodulesToken'
81+
82+
- name: Checkout Submodules
83+
if: env.useGitSubmodules != 'false' && env.useGitSubmodules != ''
84+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
85+
with:
86+
lfs: true
87+
submodules: ${{ env.useGitSubmodules }}
88+
token: '${{ fromJson(steps.ReadSubmodulesToken.outputs.Secrets).gitSubmodulesToken }}'
6989

7090
- name: Determine Workflow Depth
7191
id: DetermineWorkflowDepth
@@ -74,7 +94,7 @@ jobs:
7494
7595
- name: Determine Projects To Build
7696
id: determineProjectsToBuild
77-
uses: CBS-BC-AT/AL-Go-Actions/DetermineProjectsToBuild@v6.0
97+
uses: CBS-BC-AT/AL-Go-Actions/DetermineProjectsToBuild@cegeka/preview
7898
with:
7999
shell: powershell
80100
maxBuildDepth: ${{ env.workflowDepth }}
@@ -87,23 +107,23 @@ jobs:
87107
88108
- name: Determine Delivery Target Secrets
89109
id: DetermineDeliveryTargetSecrets
90-
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeliveryTargets@v6.0
110+
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeliveryTargets@cegeka/preview
91111
with:
92112
shell: powershell
93113
projectsJson: '${{ steps.determineProjectsToBuild.outputs.ProjectsJson }}'
94114
checkContextSecrets: 'false'
95115

96116
- name: Read secrets
97117
id: ReadSecrets
98-
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@v6.0
118+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
99119
with:
100120
shell: powershell
101121
gitHubSecrets: ${{ toJson(secrets) }}
102122
getSecrets: ${{ steps.DetermineDeliveryTargetSecrets.outputs.ContextSecrets }}
103123

104124
- name: Determine Delivery Targets
105125
id: DetermineDeliveryTargets
106-
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeliveryTargets@v6.0
126+
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeliveryTargets@cegeka/preview
107127
env:
108128
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
109129
with:
@@ -113,7 +133,7 @@ jobs:
113133

114134
- name: Determine Deployment Environments
115135
id: DetermineDeploymentEnvironments
116-
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeploymentEnvironments@v6.0
136+
uses: CBS-BC-AT/AL-Go-Actions/DetermineDeploymentEnvironments@cegeka/preview
117137
env:
118138
GITHUB_TOKEN: ${{ github.token }}
119139
with:
@@ -126,19 +146,28 @@ jobs:
126146
runs-on: [ windows-latest ]
127147
steps:
128148
- name: Checkout
129-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
149+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
130150

131151
- name: Read settings
132-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
152+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
133153
with:
134154
shell: powershell
135155
get: templateUrl
136156

157+
- name: Read secrets
158+
id: ReadSecrets
159+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
160+
with:
161+
shell: powershell
162+
gitHubSecrets: ${{ toJson(secrets) }}
163+
getSecrets: 'ghTokenWorkflow'
164+
137165
- name: Check for updates to AL-Go system files
138-
uses: CBS-BC-AT/AL-Go-Actions/CheckForUpdates@v6.0
166+
uses: CBS-BC-AT/AL-Go-Actions/CheckForUpdates@cegeka/preview
139167
with:
140168
shell: powershell
141169
templateUrl: ${{ env.templateUrl }}
170+
token: ${{ fromJson(steps.ReadSecrets.outputs.Secrets).ghTokenWorkflow }}
142171
downloadLatest: true
143172

144173
Build:
@@ -157,10 +186,11 @@ jobs:
157186
project: ${{ matrix.project }}
158187
projectName: ${{ matrix.projectName }}
159188
buildMode: ${{ matrix.buildMode }}
189+
skippedProjectsJson: ${{ needs.Initialization.outputs.skippedProjects }}
160190
projectDependenciesJson: ${{ needs.Initialization.outputs.projectDependenciesJson }}
191+
baselineWorkflowRunId: ${{ needs.Initialization.outputs.baselineWorkflowRunId }}
192+
baselineWorkflowSHA: ${{ needs.Initialization.outputs.baselineWorkflowSHA }}
161193
secrets: 'licenseFileUrl,codeSignCertificateUrl,*codeSignCertificatePassword,keyVaultCertificateUrl,*keyVaultCertificatePassword,keyVaultClientId,gitHubPackagesContext,applicationInsightsConnectionString'
162-
publishThisBuildArtifacts: ${{ needs.Initialization.outputs.workflowDepth > 1 }}
163-
publishArtifacts: ${{ github.ref_name == 'main' || startswith(github.ref_name, 'release/') || startswith(github.ref_name, 'releases/') || needs.Initialization.outputs.deliveryTargetsJson != '[]' || needs.Initialization.outputs.environmentCount > 0 }}
164194
signArtifacts: true
165195
useArtifactCache: true
166196

@@ -179,15 +209,15 @@ jobs:
179209
url: ${{ steps.deployment.outputs.page_url }}
180210
steps:
181211
- name: Checkout
182-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
212+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
183213

184214
- name: Download artifacts
185215
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
186216
with:
187217
path: '.artifacts'
188218

189219
- name: Read settings
190-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
220+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
191221
with:
192222
shell: powershell
193223

@@ -196,7 +226,7 @@ jobs:
196226
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
197227

198228
- name: Build Reference Documentation
199-
uses: CBS-BC-AT/AL-Go-Actions/BuildReferenceDocumentation@v6.0
229+
uses: CBS-BC-AT/AL-Go-Actions/BuildReferenceDocumentation@cegeka/preview
200230
with:
201231
shell: powershell
202232
artifacts: '.artifacts'
@@ -225,15 +255,15 @@ jobs:
225255
url: ${{ steps.Deploy.outputs.environmentUrl }}
226256
steps:
227257
- name: Checkout
228-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
258+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
229259

230260
- name: Download artifacts
231261
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
232262
with:
233263
path: '.artifacts'
234264

235265
- name: Read settings
236-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
266+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
237267
with:
238268
shell: ${{ matrix.shell }}
239269
get: type,powerPlatformSolutionFolder
@@ -247,15 +277,15 @@ jobs:
247277
248278
- name: Read secrets
249279
id: ReadSecrets
250-
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@v6.0
280+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
251281
with:
252282
shell: ${{ matrix.shell }}
253283
gitHubSecrets: ${{ toJson(secrets) }}
254284
getSecrets: '${{ steps.envName.outputs.envName }}-AuthContext,${{ steps.envName.outputs.envName }}_AuthContext,AuthContext'
255285

256286
- name: Deploy to Business Central
257287
id: Deploy
258-
uses: CBS-BC-AT/AL-Go-Actions/Deploy@v6.0
288+
uses: CBS-BC-AT/AL-Go-Actions/Deploy@cegeka/preview
259289
env:
260290
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
261291
with:
@@ -267,7 +297,7 @@ jobs:
267297

268298
- name: Deploy to Power Platform
269299
if: env.type == 'PTE' && env.powerPlatformSolutionFolder != ''
270-
uses: CBS-BC-AT/AL-Go-Actions/DeployPowerPlatform@v6.0
300+
uses: CBS-BC-AT/AL-Go-Actions/DeployPowerPlatform@cegeka/preview
271301
env:
272302
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
273303
with:
@@ -287,28 +317,28 @@ jobs:
287317
name: Deliver to ${{ matrix.deliveryTarget }}
288318
steps:
289319
- name: Checkout
290-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
320+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
291321

292322
- name: Download artifacts
293323
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
294324
with:
295325
path: '.artifacts'
296326

297327
- name: Read settings
298-
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@v6.0
328+
uses: CBS-BC-AT/AL-Go-Actions/ReadSettings@cegeka/preview
299329
with:
300330
shell: powershell
301331

302332
- name: Read secrets
303333
id: ReadSecrets
304-
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@v6.0
334+
uses: CBS-BC-AT/AL-Go-Actions/ReadSecrets@cegeka/preview
305335
with:
306336
shell: powershell
307337
gitHubSecrets: ${{ toJson(secrets) }}
308338
getSecrets: '${{ matrix.deliveryTarget }}Context'
309339

310340
- name: Deliver
311-
uses: CBS-BC-AT/AL-Go-Actions/Deliver@v6.0
341+
uses: CBS-BC-AT/AL-Go-Actions/Deliver@cegeka/preview
312342
env:
313343
Secrets: '${{ steps.ReadSecrets.outputs.Secrets }}'
314344
with:
@@ -324,11 +354,11 @@ jobs:
324354
runs-on: [ windows-latest ]
325355
steps:
326356
- name: Checkout
327-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
357+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
328358

329359
- name: Finalize the workflow
330360
id: PostProcess
331-
uses: CBS-BC-AT/AL-Go-Actions/WorkflowPostProcess@v6.0
361+
uses: CBS-BC-AT/AL-Go-Actions/WorkflowPostProcess@cegeka/preview
332362
env:
333363
GITHUB_TOKEN: ${{ github.token }}
334364
with:

0 commit comments

Comments
 (0)