From 991efa395c0be3f79394379013c81d8a6c7ad17e Mon Sep 17 00:00:00 2001 From: aholstrup Date: Mon, 23 Dec 2024 09:13:43 +0100 Subject: [PATCH 1/3] Add scaffolding --- .../.AL-Go/CompileAppInBcContainer.ps1 | 6 + .../Extensions (W1)/.AL-Go/NewBcContainer.ps1 | 6 + .../.AL-Go/RunTestsInBcContainer.ps1 | 6 + .../Extensions (W1)/.AL-Go/cloudDevEnv.ps1 | 101 +++++++++++ .../Extensions (W1)/.AL-Go/localDevEnv.ps1 | 158 ++++++++++++++++++ .../Extensions (W1)/.AL-Go/settings.json | 27 +++ build/scripts/NewBcContainer.ps1 | 11 +- 7 files changed, 312 insertions(+), 3 deletions(-) create mode 100644 build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 create mode 100644 build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 create mode 100644 build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 create mode 100644 build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 create mode 100644 build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 create mode 100644 build/projects/Extensions (W1)/.AL-Go/settings.json diff --git a/build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 b/build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 new file mode 100644 index 0000000000..c5e7ea9ca7 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 @@ -0,0 +1,6 @@ +Param( + [Hashtable] $parameters +) + +$scriptPath = Join-Path $PSScriptRoot "../../../scripts/CompileAppInBcContainer.ps1" -Resolve +. $scriptPath -parameters $parameters \ No newline at end of file diff --git a/build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 b/build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 new file mode 100644 index 0000000000..88fbcf49e2 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 @@ -0,0 +1,6 @@ +Param( + [Hashtable]$parameters +) + +$script = Join-Path $PSScriptRoot "../../../scripts/NewBcContainer.ps1" -Resolve +. $script -parameters $parameters -keepApps @("System Application", "Business Foundation", "Base Application", "Application") \ No newline at end of file diff --git a/build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 b/build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 new file mode 100644 index 0000000000..1637222d85 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 @@ -0,0 +1,6 @@ +Param( + [Hashtable]$parameters +) + +$script = Join-Path $PSScriptRoot "../../../scripts/RunTestsInBcContainer.ps1" -Resolve +. $script -parameters $parameters \ No newline at end of file diff --git a/build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 b/build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 new file mode 100644 index 0000000000..cf0ec90865 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 @@ -0,0 +1,101 @@ +# +# Script for creating cloud development environment +# Please do not modify this script as it will be auto-updated from the AL-Go Template +# Recommended approach is to use as is or add a script (freddyk-devenv.ps1), which calls this script with the user specific parameters +# +Param( + [string] $environmentName = "", + [bool] $reuseExistingEnvironment, + [switch] $fromVSCode, + [switch] $clean +) + +$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 + +function DownloadHelperFile { + param( + [string] $url, + [string] $folder + ) + + $prevProgressPreference = $ProgressPreference; $ProgressPreference = 'SilentlyContinue' + $name = [System.IO.Path]::GetFileName($url) + Write-Host "Downloading $name from $url" + $path = Join-Path $folder $name + Invoke-WebRequest -UseBasicParsing -uri $url -OutFile $path + $ProgressPreference = $prevProgressPreference + return $path +} + +try { +Clear-Host +Write-Host +Write-Host -ForegroundColor Yellow @' + _____ _ _ _____ ______ + / ____| | | | | __ \ | ____| + | | | | ___ _ _ __| | | | | | _____ __ |__ _ ____ __ + | | | |/ _ \| | | |/ _` | | | | |/ _ \ \ / / __| | '_ \ \ / / + | |____| | (_) | |_| | (_| | | |__| | __/\ V /| |____| | | \ V / + \_____|_|\___/ \__,_|\__,_| |_____/ \___| \_/ |______|_| |_|\_/ + +'@ + +$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" +New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null + +Import-Module $GitHubHelperPath +. $ALGoHelperPath -local + +$baseFolder = GetBaseFolder -folder $PSScriptRoot +$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot + +Write-Host @' + +This script will create a cloud based development environment (Business Central SaaS Sandbox) for your project. +All apps and test apps will be compiled and published to the environment in the development scope. +The script will also modify launch.json to have a "Cloud Sandbox ()" configuration point to your environment. + +'@ + +if (Test-Path (Join-Path $PSScriptRoot "NewBcContainer.ps1")) { + Write-Host -ForegroundColor Red "WARNING: The project has a NewBcContainer override defined. Typically, this means that you cannot run a cloud development environment" +} + +Write-Host + +if (-not $environmentName) { + $environmentName = Enter-Value ` + -title "Environment name" ` + -question "Please enter the name of the environment to create" ` + -default "$($env:USERNAME)-sandbox" ` + -trimCharacters @('"',"'",' ') +} + +if ($PSBoundParameters.Keys -notcontains 'reuseExistingEnvironment') { + $reuseExistingEnvironment = (Select-Value ` + -title "What if the environment already exists?" ` + -options @{ "Yes" = "Reuse existing environment"; "No" = "Recreate environment" } ` + -question "Select behavior" ` + -default "No") -eq "Yes" +} + +CreateDevEnv ` + -kind cloud ` + -caller local ` + -environmentName $environmentName ` + -reuseExistingEnvironment:$reuseExistingEnvironment ` + -baseFolder $baseFolder ` + -project $project ` + -clean:$clean +} +catch { + Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" +} +finally { + if ($fromVSCode) { + Read-Host "Press ENTER to close this window" + } +} diff --git a/build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 b/build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 new file mode 100644 index 0000000000..62163ddc52 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 @@ -0,0 +1,158 @@ +# +# Script for creating local development environment +# Please do not modify this script as it will be auto-updated from the AL-Go Template +# Recommended approach is to use as is or add a script (freddyk-devenv.ps1), which calls this script with the user specific parameters +# +Param( + [string] $containerName = "", + [ValidateSet("UserPassword", "Windows")] + [string] $auth = "", + [pscredential] $credential = $null, + [string] $licenseFileUrl = "", + [switch] $fromVSCode, + [switch] $accept_insiderEula, + [switch] $clean +) + +$errorActionPreference = "Stop"; $ProgressPreference = "SilentlyContinue"; Set-StrictMode -Version 2.0 + +function DownloadHelperFile { + param( + [string] $url, + [string] $folder + ) + + $prevProgressPreference = $ProgressPreference; $ProgressPreference = 'SilentlyContinue' + $name = [System.IO.Path]::GetFileName($url) + Write-Host "Downloading $name from $url" + $path = Join-Path $folder $name + Invoke-WebRequest -UseBasicParsing -uri $url -OutFile $path + $ProgressPreference = $prevProgressPreference + return $path +} + +try { +Clear-Host +Write-Host +Write-Host -ForegroundColor Yellow @' + _ _ _____ ______ + | | | | | __ \ | ____| + | | ___ ___ __ _| | | | | | _____ __ |__ _ ____ __ + | | / _ \ / __/ _` | | | | | |/ _ \ \ / / __| | '_ \ \ / / + | |____ (_) | (__ (_| | | | |__| | __/\ V /| |____| | | \ V / + |______\___/ \___\__,_|_| |_____/ \___| \_/ |______|_| |_|\_/ + +'@ + +$tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" +New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null + +Import-Module $GitHubHelperPath +. $ALGoHelperPath -local + +$baseFolder = GetBaseFolder -folder $PSScriptRoot +$project = GetProject -baseFolder $baseFolder -projectALGoFolder $PSScriptRoot + +Write-Host @' + +This script will create a docker based local development environment for your project. + +NOTE: You need to have Docker installed, configured and be able to create Business Central containers for this to work. +If this fails, you can setup a cloud based development environment by running cloudDevEnv.ps1 + +All apps and test apps will be compiled and published to the environment in the development scope. +The script will also modify launch.json to have a Local Sandbox configuration point to your environment. + +'@ + +$settings = ReadSettings -baseFolder $baseFolder -project $project -userName $env:USERNAME -workflowName 'localDevEnv' + +Write-Host "Checking System Requirements" +$dockerProcess = (Get-Process "dockerd" -ErrorAction Ignore) +if (!($dockerProcess)) { + Write-Host -ForegroundColor Red "Dockerd process not found. Docker might not be started, not installed or not running Windows Containers." +} +if ($settings.keyVaultName) { + if (-not (Get-Module -ListAvailable -Name 'Az.KeyVault')) { + Write-Host -ForegroundColor Red "A keyvault name is defined in Settings, you need to have the Az.KeyVault PowerShell module installed (use Install-Module az) or you can set the keyVaultName to an empty string in the user settings file ($($ENV:UserName).settings.json)." + } +} + +Write-Host + +if (-not $containerName) { + $containerName = Enter-Value ` + -title "Container name" ` + -question "Please enter the name of the container to create" ` + -default "bcserver" ` + -trimCharacters @('"',"'",' ') +} + +if (-not $auth) { + $auth = Select-Value ` + -title "Authentication mechanism for container" ` + -options @{ "Windows" = "Windows Authentication"; "UserPassword" = "Username/Password authentication" } ` + -question "Select authentication mechanism for container" ` + -default "UserPassword" +} + +if (-not $credential) { + if ($auth -eq "Windows") { + $credential = Get-Credential -Message "Please enter your Windows Credentials" -UserName $env:USERNAME + $CurrentDomain = "LDAP://" + ([ADSI]"").distinguishedName + $domain = New-Object System.DirectoryServices.DirectoryEntry($CurrentDomain,$credential.UserName,$credential.GetNetworkCredential().password) + if ($null -eq $domain.name) { + Write-Host -ForegroundColor Red "Unable to verify your Windows Credentials, you might not be able to authenticate to your container" + } + } + else { + $credential = Get-Credential -Message "Please enter username and password for your container" -UserName "admin" + } +} + +if (-not $licenseFileUrl) { + if ($settings.type -eq "AppSource App") { + $description = "When developing AppSource Apps for Business Central versions prior to 22, your local development environment needs the developer licensefile with permissions to your AppSource app object IDs" + $default = "none" + } + else { + $description = "When developing PTEs, you can optionally specify a developer licensefile with permissions to object IDs of your dependant apps" + $default = "none" + } + + $licenseFileUrl = Enter-Value ` + -title "LicenseFileUrl" ` + -description $description ` + -question "Local path or a secure download URL to license file " ` + -default $default ` + -doNotConvertToLower ` + -trimCharacters @('"',"'",' ') +} + +if ($licenseFileUrl -eq "none") { + $licenseFileUrl = "" +} + +CreateDevEnv ` + -kind local ` + -caller local ` + -containerName $containerName ` + -baseFolder $baseFolder ` + -project $project ` + -auth $auth ` + -credential $credential ` + -licenseFileUrl $licenseFileUrl ` + -accept_insiderEula:$accept_insiderEula ` + -clean:$clean +} +catch { + Write-Host -ForegroundColor Red "Error: $($_.Exception.Message)`nStacktrace: $($_.scriptStackTrace)" +} +finally { + if ($fromVSCode) { + Read-Host "Press ENTER to close this window" + } +} diff --git a/build/projects/Extensions (W1)/.AL-Go/settings.json b/build/projects/Extensions (W1)/.AL-Go/settings.json new file mode 100644 index 0000000000..1b2ef7bd94 --- /dev/null +++ b/build/projects/Extensions (W1)/.AL-Go/settings.json @@ -0,0 +1,27 @@ +{ + "projectName": "Extensions (W1)", + "appFolders": [ + "../../../src/Extensions/W1/*/app" + ], + "testFolders": [ + "../../../src/Extensions/W1/*/Test", + "../../../src/Extensions/W1/*/Test Library" + ], + "buildModes": [ + "Translated" + ], + "installOnlyReferencedApps": false, + "ConditionalSettings": [ + { + "branches": [ + "releases/*.[0-5]" + ], + "settings": { + "buildModes": [ "Strict" ] + } + } + ], + "installTestLibraries": true, + "installTestFramework": true, + "installTestRunner": true +} \ No newline at end of file diff --git a/build/scripts/NewBcContainer.ps1 b/build/scripts/NewBcContainer.ps1 index cc1c40c49d..47f2731636 100644 --- a/build/scripts/NewBcContainer.ps1 +++ b/build/scripts/NewBcContainer.ps1 @@ -1,5 +1,6 @@ Param( - [Hashtable]$parameters + [Hashtable]$parameters, + [string[]]$keepApps ) $parameters.multitenant = $false @@ -14,8 +15,12 @@ New-BcContainer @parameters $installedApps = Get-BcContainerAppInfo -containerName $containerName -tenantSpecificProperties -sort DependenciesLast $installedApps | ForEach-Object { - Write-Host "Removing $($_.Name)" - Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force + if ($_.Name -notin $keepApps) { + Write-Host "Removing $($_.Name)" + Unpublish-BcContainerApp -containerName $parameters.ContainerName -name $_.Name -unInstall -doNotSaveData -doNotSaveSchema -force + } else { + Write-Host "Keeping $($_.Name)" + } } Invoke-ScriptInBcContainer -containerName $parameters.ContainerName -scriptblock { $progressPreference = 'SilentlyContinue' } \ No newline at end of file From 7bf9af45aa27374461235094069c81f794eb731d Mon Sep 17 00:00:00 2001 From: aholstrup1 Date: Mon, 30 Dec 2024 10:42:12 +0100 Subject: [PATCH 2/3] Extensions -> Add-Ons --- .../.AL-Go/CompileAppInBcContainer.ps1 | 0 .../.AL-Go/NewBcContainer.ps1 | 0 .../.AL-Go/RunTestsInBcContainer.ps1 | 0 .../.AL-Go/cloudDevEnv.ps1 | 0 .../.AL-Go/localDevEnv.ps1 | 0 .../.AL-Go/settings.json | 8 ++++---- 6 files changed, 4 insertions(+), 4 deletions(-) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/CompileAppInBcContainer.ps1 (100%) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/NewBcContainer.ps1 (100%) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/RunTestsInBcContainer.ps1 (100%) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/cloudDevEnv.ps1 (100%) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/localDevEnv.ps1 (100%) rename build/projects/{Extensions (W1) => Add-Ons (W1)}/.AL-Go/settings.json (72%) diff --git a/build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/CompileAppInBcContainer.ps1 similarity index 100% rename from build/projects/Extensions (W1)/.AL-Go/CompileAppInBcContainer.ps1 rename to build/projects/Add-Ons (W1)/.AL-Go/CompileAppInBcContainer.ps1 diff --git a/build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/NewBcContainer.ps1 similarity index 100% rename from build/projects/Extensions (W1)/.AL-Go/NewBcContainer.ps1 rename to build/projects/Add-Ons (W1)/.AL-Go/NewBcContainer.ps1 diff --git a/build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/RunTestsInBcContainer.ps1 similarity index 100% rename from build/projects/Extensions (W1)/.AL-Go/RunTestsInBcContainer.ps1 rename to build/projects/Add-Ons (W1)/.AL-Go/RunTestsInBcContainer.ps1 diff --git a/build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 similarity index 100% rename from build/projects/Extensions (W1)/.AL-Go/cloudDevEnv.ps1 rename to build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 diff --git a/build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 similarity index 100% rename from build/projects/Extensions (W1)/.AL-Go/localDevEnv.ps1 rename to build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 diff --git a/build/projects/Extensions (W1)/.AL-Go/settings.json b/build/projects/Add-Ons (W1)/.AL-Go/settings.json similarity index 72% rename from build/projects/Extensions (W1)/.AL-Go/settings.json rename to build/projects/Add-Ons (W1)/.AL-Go/settings.json index 1b2ef7bd94..8c0484526d 100644 --- a/build/projects/Extensions (W1)/.AL-Go/settings.json +++ b/build/projects/Add-Ons (W1)/.AL-Go/settings.json @@ -1,11 +1,11 @@ { - "projectName": "Extensions (W1)", + "projectName": "Add-Ons (W1)", "appFolders": [ - "../../../src/Extensions/W1/*/app" + "../../../src/Add-Ons/W1/*/app" ], "testFolders": [ - "../../../src/Extensions/W1/*/Test", - "../../../src/Extensions/W1/*/Test Library" + "../../../src/Add-Ons/W1/*/Test", + "../../../src/Add-Ons/W1/*/Test Library" ], "buildModes": [ "Translated" From fff661ef55e9710c84510bd3a13a1eace65d0d1e Mon Sep 17 00:00:00 2001 From: aholstrup1 Date: Mon, 30 Dec 2024 10:44:20 +0100 Subject: [PATCH 3/3] Al-Go --- build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 | 6 +++--- build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 index cf0ec90865..8aaf674b16 100644 --- a/build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 +++ b/build/projects/Add-Ons (W1)/.AL-Go/cloudDevEnv.ps1 @@ -42,9 +42,9 @@ Write-Host -ForegroundColor Yellow @' $tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null -$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local diff --git a/build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 b/build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 index 62163ddc52..0d39123a86 100644 --- a/build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 +++ b/build/projects/Add-Ons (W1)/.AL-Go/localDevEnv.ps1 @@ -46,9 +46,9 @@ Write-Host -ForegroundColor Yellow @' $tmpFolder = Join-Path ([System.IO.Path]::GetTempPath()) "$([Guid]::NewGuid().ToString())" New-Item -Path $tmpFolder -ItemType Directory -Force | Out-Null -$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Github-Helper.psm1' -folder $tmpFolder -$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/AL-Go-Helper.ps1' -folder $tmpFolder -DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go-Actions/v6.2/Packages.json' -folder $tmpFolder | Out-Null +$GitHubHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/Github-Helper.psm1' -folder $tmpFolder +$ALGoHelperPath = DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/AL-Go-Helper.ps1' -folder $tmpFolder +DownloadHelperFile -url 'https://raw.githubusercontent.com/microsoft/AL-Go/471b88b68863d06568efb833d74b02f0879b1c89/Actions/Packages.json' -folder $tmpFolder | Out-Null Import-Module $GitHubHelperPath . $ALGoHelperPath -local