-
Notifications
You must be signed in to change notification settings - Fork 188
Add support for workspace compilation #2161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
253 commits
Select commit
Hold shift + click to select a range
b558f33
-OutFolder
aholstrup1 af04486
-Ruleset
aholstrup1 736a83c
testAppFiles
aholstrup1 1014671
testAppFiles
aholstrup1 a6a38ca
fixes
aholstrup1 10e0911
Out-Null
aholstrup1 f2a3a24
Delete file if already exist
aholstrup1 17cebfb
-OutputFolder
aholstrup1 c45193f
--logdirectory
aholstrup1 fc2a3b3
resolve ruleset path
aholstrup1 621a786
compilerolder
aholstrup1 93447e2
updates
aholstrup1 2f6f35c
encoding
aholstrup1 15f1799
maxcpucount
aholstrup1 87c3c3c
precompile implementation
aholstrup1 1f62b13
PreCompileApp
aholstrup1 351ab66
lower MaxCpuCount
aholstrup1 1c7bf07
no parallel tasks
aholstrup1 d9470f0
test
aholstrup1 9e5d346
build versioning
aholstrup1 19b518c
ifs
aholstrup1 2e381e6
analyzers
aholstrup1 17378b0
download al tool
aholstrup1 11f2f59
logging
aholstrup1 32d1b24
logging
aholstrup1 604ed91
test
aholstrup1 bfb98a1
cops
aholstrup1 230ec92
Use from nuget
aholstrup1 83bf66f
fix
aholstrup1 fdee523
temp fix
aholstrup1 015c3a0
analyzer support
aholstrup1 7355cbe
Revert "analyzer support"
aholstrup1 cbd7346
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 70c44a6
test compile action
aholstrup1 cd2f5c0
change default
aholstrup1 f55469f
fix
aholstrup1 9a46426
fix import
aholstrup1 0e206f1
fix
aholstrup1 61495e2
Change default log level
aholstrup1 1620859
change output folder
aholstrup1 c22da81
Produce build output file
aholstrup1 fa4cf85
Validate MaxCpuCount
aholstrup1 8b0f736
include build output always
aholstrup1 deafa5e
get altool from compilerfolder
aholstrup1 84417d6
Do not call compile when there's nothing to compile
aholstrup1 168f3e5
Add some more missing pieces
aholstrup1 bd27c5d
implement version numbering
aholstrup1 ce9aa9f
lowercase
aholstrup1 e1835bd
Fix
aholstrup1 54b31c6
log app version
aholstrup1 8dee891
build version fix
aholstrup1 bd48bdd
bug fixes
aholstrup1 bffbfa4
test apps
aholstrup1 5fb04a6
Refactor build number logic
aholstrup1 3d458db
less logging
aholstrup1 a53bd5c
test incremental builds
aholstrup1 0a9841b
projectFolder
aholstrup1 614323b
incremental builds
aholstrup1 cebb507
parameters
aholstrup1 8585159
comments
aholstrup1 f5eec78
debugging
aholstrup1 be6e007
comments
aholstrup1 d2d2d2e
Skip runpipeline if nothing to do
aholstrup1 b41114c
test
aholstrup1 97ee586
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 2926dd7
Refactor
aholstrup1 e596519
fix
aholstrup1 07cef32
Get-Command
aholstrup1 2851c3e
default to max parallelism
aholstrup1 7067b2f
Move code
aholstrup1 1556896
-AppType
aholstrup1 70c9445
Cleanup
aholstrup1 2f461dd
Update precompile call
aholstrup1 b9629ab
Let negative mean max
aholstrup1 4727254
init appFiles and testAppFiles
aholstrup1 588a7fc
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 57c6a27
Get-BasePath
aholstrup1 f565e2e
DownloadExternalProjectDependencies
aholstrup1 ca18c9f
Cleanup
aholstrup1 b3c5b89
Refactor
aholstrup1 cf19a39
Logging
aholstrup1 23ff383
Initial implementation
aholstrup1 abd86aa
Add PS5 compatibility
aholstrup1 a0b3ecd
Remove duplicate check
aholstrup1 2a2e1cf
Remove logic from Runpipeline
aholstrup1 323d90a
releasenotes
aholstrup1 e992e7f
Check secret exists
aholstrup1 37a1b20
handle empty sanitizedFileName
aholstrup1 840a612
Handle duplicate files
aholstrup1 3bbd0d1
Error message
aholstrup1 b0d5fa4
releasenotes
aholstrup1 15554dc
Use Invoke-CommandWithRetry
aholstrup1 b65ba77
Merge branch 'aholstrup/installApps_download' of https://github.com/a…
aholstrup1 6dfc3bd
Documentation
aholstrup1 26ffcb4
PerTenantExtensionCop
aholstrup1 e005e8b
PTECop
aholstrup1 b869b49
Get-BuildMetadata
aholstrup1 ec5d85e
More refactor
aholstrup1 543b760
AssemblyProbingPaths
aholstrup1 5b1ae66
Set MaximumDotNetVersion
aholstrup1 7de91df
Logging improvements
aholstrup1 f2eac74
logging for AssemblyProbingPaths
aholstrup1 c7ffc12
add to test app files
aholstrup1 3df5c8a
ReportSuppressedDiagnostics
aholstrup1 cf519c3
warnings
aholstrup1 3fd07eb
More refactor
aholstrup1 332efbd
More refactor
aholstrup1 9997895
Move Update-AppJsonProperties
aholstrup1 ad9e91e
Remove cleanup
aholstrup1 d5b933f
Move Get-AssemblyProbingPaths
aholstrup1 1ad77d7
Export Update-AppJsonProperties
aholstrup1 e69be86
Remove GenerateCrossReferences
aholstrup1 0768bcc
ErrorLogPath
aholstrup1 66b506c
--generatereportlayout
aholstrup1 fe50ef3
Fix one todo
aholstrup1 ab35ab3
Update comment
aholstrup1 5f4a3e5
useWorkspaceCompilation handling in run-alpipeline
aholstrup1 befd271
Suggestions
aholstrup1 2c7a5bc
Unit tests
aholstrup1 b7be092
More tests
aholstrup1 4e7f054
E2E test
aholstrup1 5d77646
Cleanup al-go-helper
aholstrup1 81b4ec4
More cleanup
aholstrup1 576130c
Skip incremental build download for useWorkspaceCompilation
aholstrup1 9dfe417
Fix for version numbering
aholstrup1 95c9a2e
debugging
aholstrup1 77f7399
Update logdirectory
aholstrup1 42dbe18
Add LogDirectory
aholstrup1 85b966d
Update
aholstrup1 f67b239
Fix?
aholstrup1 1a18d7e
test
aholstrup1 930d288
Refactor
aholstrup1 86efa2f
Handle bcptTestFolders later
aholstrup1 78dba78
Handle BCPT later
aholstrup1 4c22df7
telemetry
aholstrup1 b311749
Fix trace
aholstrup1 319d38b
Docs and cleanup
aholstrup1 8257dee
More cleanup
aholstrup1 c74fa44
Fix for how install apps is set
aholstrup1 1c2a9d3
Handling for .zip files
aholstrup1 7c2cc34
Add tests
aholstrup1 afab810
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 0b446c0
Cleanup
aholstrup1 50b19d5
Import Github-Helper.psm1
aholstrup1 cc992ad
Add handling of local paths
aholstrup1 cc03d43
Make sure all app files are always copied to dependencies folder
aholstrup1 0ba2ae6
Update test
aholstrup1 25d5c24
Fix compatibility issue
aholstrup1 8995cc8
Fix test
aholstrup1 488057f
debugging
aholstrup1 7d393ce
Check if folder exists
aholstrup1 8f660fe
Better logging
aholstrup1 8c6e34e
Fix trailing whitespace and missing blank line
aholstrup1 4b9cf82
remove out folder
aholstrup1 697edbb
Change directory
aholstrup1 ff159c2
Suggestions batch 1
aholstrup1 324518c
suggestions batch 2
aholstrup1 0703fd4
Handling for missing secret
aholstrup1 f98b798
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 4cf6c3d
Merge branch 'main' of https://github.com/microsoft/al-go into aholst…
aholstrup1 bbfbe81
Merge branch 'aholstrup/installApps_download' of https://github.com/a…
aholstrup1 a3fdec4
Handle ruleset
aholstrup1 498fa33
Remove skipupgrade
aholstrup1 41a5e6d
Use cache folder
aholstrup1 4018bd1
Docs
aholstrup1 ad2c91d
Merge branch 'main' of https://github.com/microsoft/AL-Go into aholst…
aholstrup1 51465ad
Add step to workflow
aholstrup1 6fc8a41
change verbosity settings
aholstrup1 b6c7e1d
Verbose
aholstrup1 1e1c078
LogLevel
aholstrup1 512a54b
update action
aholstrup1 3d35410
loglevel
aholstrup1 a479f14
Merge branch 'main' of https://github.com/microsoft/AL-Go into aholst…
aholstrup1 f00e1b7
Update reusable workflow
aholstrup1 4410f1a
Use nextmajor artifact
aholstrup1 f59f50b
Fixes
aholstrup1 265004c
update e2e test
aholstrup1 bf65282
SMH
aholstrup1 faa9044
update to get-altool
aholstrup1 ba71dad
Skip workspace compilation on linux
aholstrup1 fb4ae5f
Fixes
aholstrup1 eb8cfc5
pre-commit
aholstrup1 28fc683
releasenotes
aholstrup1 b44a376
fix releasenotes
aholstrup1 c5b17b0
CustomAnalyzers
aholstrup1 6d7fed2
Suggestions
aholstrup1 53ade94
Updates to Get-CustomAnalyzers
aholstrup1 706c62d
messages
aholstrup1 b65542e
Refactor Get-ScriptOverrides so we can reuse it
aholstrup1 b2b99a2
Minor review changes
aholstrup1 b95985e
Fix for Get-ScriptOverrides
aholstrup1 28af88b
move workspace files to temp folder
aholstrup1 547c1eb
Findings
aholstrup1 316c897
test coverage
aholstrup1 d09796a
Merge branch 'main' of https://github.com/microsoft/AL-Go into aholst…
aholstrup1 8d95f3d
Copy installapps to the packagecache folder
aholstrup1 731e688
Update e2eTests/scenarios/WorkspaceCompilation/runtest.ps1
aholstrup1 140efd1
Update Actions/Compile/Compile.ps1
aholstrup1 cf11682
Update Actions/Compile/README.md
aholstrup1 fc50752
Update RELEASENOTES.md
aholstrup1 70d06c0
Update e2eTests/scenarios/WorkspaceCompilation/runtest.ps1
aholstrup1 cd9fa13
settings.md
aholstrup1 104fb60
Update note
aholstrup1 6e1acc5
suggestion
aholstrup1 1b44672
Update Get-ScriptOverrides
aholstrup1 a3edd5e
update tests
aholstrup1 9b74268
update e2e
aholstrup1 7bbce7c
AL-Go-Helper.ps1
aholstrup1 761ea57
temp folder
aholstrup1 d25dee7
move workspacefile back to project folder
aholstrup1 8fa4f95
Get-Location
aholstrup1 0ee8cd5
always return generated files
aholstrup1 b59a8e6
features document
aholstrup1 bcdd215
Rename action inputs
aholstrup1 5bd3186
cleanup
aholstrup1 4acd95f
readme
aholstrup1 1a6404c
env variables
aholstrup1 022e7c0
proper docs
aholstrup1 54a204e
RunAndCheck
aholstrup1 3fae296
Update settings structure
aholstrup1 ff58312
outnull
aholstrup1 a265be7
clarify todos
aholstrup1 1f52668
variable nam
aholstrup1 5862e27
rename
aholstrup1 c945e03
change parsing
aholstrup1 80f919e
update e2e
aholstrup1 3a535d1
cleanup workspace file
aholstrup1 cbceeae
only copy files to output on success
aholstrup1 77aa736
add secrets back
aholstrup1 b1d80ac
comment
aholstrup1 7ccb294
dotnetRoot
aholstrup1 d79fa41
Handle 0 in parallelism
aholstrup1 3c8d853
Smaller fixes
aholstrup1 dc26f26
test coverage
aholstrup1 5de9918
alwyas pop location
aholstrup1 c346e4d
OutputWarning
aholstrup1 ddd162e
Parameter
aholstrup1 62a347d
inconsistent style
aholstrup1 f380a96
casing
aholstrup1 0be0105
groups in New-BuildOutputFile
aholstrup1 8281826
Update implementation for build by and url
aholstrup1 e307ea3
Suggestions - Part 1
aholstrup1 3725814
Rename action folder
aholstrup1 4034e72
More naming changes
aholstrup1 bf9de54
Merge branch 'main' of https://github.com/microsoft/AL-Go into aholst…
aholstrup1 9594f16
update settings with the current limitations
aholstrup1 0091b95
Merge branch 'main' into aholstrup/workspace_compilationm
aholstrup1 6b6ebd2
update defaultapplication and runtime
aholstrup1 8946923
Merge branch 'main' into aholstrup/workspace_compilationm
aholstrup1 f815f43
Merge branch 'main' into aholstrup/workspace_compilationm
aholstrup1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,190 @@ | ||
| Param( | ||
| [Parameter(HelpMessage = "The GitHub token running the action", Mandatory = $false)] | ||
| [string] $token, | ||
| [Parameter(HelpMessage = "ArtifactUrl to use for the build", Mandatory = $false)] | ||
| [string] $artifact = "", | ||
| [Parameter(HelpMessage = "Project folder", Mandatory = $false)] | ||
| [string] $project = "", | ||
| [Parameter(HelpMessage = "Specifies a mode to use for the build steps", Mandatory = $false)] | ||
| [string] $buildMode = 'Default', | ||
| [Parameter(HelpMessage = "A path to a JSON-formatted list of dependency apps", Mandatory = $false)] | ||
| [string] $dependencyAppsJson = '', | ||
| [Parameter(HelpMessage = "A path to a JSON-formatted list of dependency test apps", Mandatory = $false)] | ||
| [string] $dependencyTestAppsJson = '', | ||
| [Parameter(HelpMessage = "RunId of the baseline workflow run", Mandatory = $false)] | ||
| [string] $baselineWorkflowRunId = '0', | ||
| [Parameter(HelpMessage = "SHA of the baseline workflow run", Mandatory = $false)] | ||
| [string] $baselineWorkflowSHA = '' | ||
| ) | ||
|
|
||
| . (Join-Path -Path $PSScriptRoot -ChildPath "..\AL-Go-Helper.ps1" -Resolve) | ||
| Import-Module (Join-Path -Path $PSScriptRoot "..\.Modules\CompileFromWorkspace.psm1" -Resolve) | ||
| Import-Module (Join-Path $PSScriptRoot '..\TelemetryHelper.psm1' -Resolve) | ||
| Import-Module (Join-Path -Path $PSScriptRoot -ChildPath "..\DetermineProjectsToBuild\DetermineProjectsToBuild.psm1" -Resolve) -DisableNameChecking | ||
| DownloadAndImportBcContainerHelper | ||
|
|
||
| # ANALYZE - Analyze the repository and determine settings | ||
| $baseFolder = (Get-BasePath) | ||
| $settings = $env:Settings | ConvertFrom-Json | ConvertTo-HashTable | ||
| $settings = AnalyzeRepo -settings $settings -baseFolder $baseFolder -project $project -doNotCheckArtifactSetting | ||
| $settings = CheckAppDependencyProbingPaths -settings $settings -token $token -baseFolder $baseFolder -project $project | ||
|
|
||
| # Check if there are any app folders or test app folders to compile | ||
| if ($settings.appFolders.Count -eq 0 -and $settings.testFolders.Count -eq 0) { | ||
| Write-Host "No app folders or test app folders specified for compilation. Skipping compilation step." | ||
| return | ||
| } | ||
|
|
||
| $projectFolder = Join-Path $baseFolder $project | ||
| Push-Location $projectFolder | ||
| try { | ||
| # Set up output folders | ||
| $buildArtifactFolder = Join-Path $projectFolder ".buildartifacts" | ||
| $appOutputFolder = Join-Path $buildArtifactFolder "Apps" | ||
| $testAppOutputFolder = Join-Path $buildArtifactFolder "TestApps" | ||
| if (-not (Test-Path $buildArtifactFolder)) { | ||
| New-Item $buildArtifactFolder -ItemType Directory -Force | Out-Null | ||
| } | ||
| if (-not (Test-Path $appOutputFolder)) { | ||
| New-Item $appOutputFolder -ItemType Directory -Force | Out-Null | ||
| } | ||
| if (-not (Test-Path $testAppOutputFolder)) { | ||
| New-Item $testAppOutputFolder -ItemType Directory -Force | Out-Null | ||
| } | ||
|
|
||
| # Check for precompile and postcompile overrides | ||
| $scriptOverrides = Get-ScriptOverrides -ALGoFolderName (Join-Path $projectFolder ".AL-Go") -OverrideScriptNames @("PreCompileApp", "PostCompileApp") | ||
|
|
||
| # Prepare build metadata | ||
| $buildMetadata = Get-BuildMetadata | ||
|
|
||
| # Get version number | ||
| $versionNumber = Get-VersionNumber -Settings $settings | ||
|
|
||
| # Get ruleset file if specified | ||
| $rulesetPath = $settings.rulesetFile | ||
| if ($settings.rulesetFile) { | ||
| $rulesetPath = Join-Path $projectFolder $settings.rulesetFile -Resolve | ||
| if (-not (Test-Path $rulesetPath)) { | ||
| throw "Ruleset file specified in settings.rulesetFile not found at path '$rulesetPath'." | ||
| } | ||
| } | ||
|
|
||
| # Read existing install apps and test apps from JSON files | ||
| $dependencyApps = @() | ||
| $dependencyTestApps = @() | ||
|
|
||
| if ($dependencyAppsJson -and (Test-Path $dependencyAppsJson)) { | ||
| try { | ||
| $dependencyApps += Get-Content -Path $dependencyAppsJson | ConvertFrom-Json | ||
| } | ||
| catch { | ||
| throw "Failed to parse JSON file at path '$dependencyAppsJson'. Error: $($_.Exception.Message)" | ||
| } | ||
| } | ||
|
|
||
| if ($dependencyTestAppsJson -and (Test-Path $dependencyTestAppsJson)) { | ||
| try { | ||
| $dependencyTestApps += Get-Content -Path $dependencyTestAppsJson | ConvertFrom-Json | ||
| } | ||
| catch { | ||
| throw "Failed to parse JSON file at path '$dependencyTestAppsJson'. Error: $($_.Exception.Message)" | ||
| } | ||
| } | ||
|
|
||
| # Set up a compiler folder | ||
| $containerName = GetContainerName($project) | ||
| $cacheFolder = "" | ||
| if ($settings.gitHubRunner -like "windows-*" -or $settings.gitHubRunner -like "ubuntu-*") { | ||
| # On GitHub-hosted runners, use a folder in the runner temp directory for caching to speed up subsequent builds | ||
| $cacheFolder = Join-Path $ENV:RUNNER_TEMP ".artifactcache" | ||
| } | ||
| $compilerFolder = New-BcCompilerFolder -artifactUrl $artifact -containerName "$($containerName)compiler" -cacheFolder $cacheFolder | ||
| $packageCachePath = Join-Path $compilerFolder "symbols" | ||
|
|
||
| # Copy dependency apps to the package cache so the compiler can resolve them | ||
| foreach ($appFile in $dependencyApps) { | ||
| $appFile = $appFile.Trim('()') | ||
| if ($appFile -and (Test-Path $appFile)) { | ||
| Copy-Item -Path $appFile -Destination $packageCachePath -Force | ||
| OutputDebug "Copied dependency app to package cache: $(Split-Path $appFile -Leaf)" | ||
| } | ||
| } | ||
|
|
||
| # Incremental Builds - Determine unmodified apps from baseline workflow run if applicable | ||
| if ($baselineWorkflowSHA -and $baselineWorkflowRunId -ne '0' -and $settings.incrementalBuilds.mode -eq 'modifiedApps') { | ||
| #TODO: Implement support for incremental builds (AB#620492) | ||
| Write-Host "Incremental builds based on modified apps is not yet implemented." | ||
| } | ||
|
|
||
| if ((-not $settings.skipUpgrade) -and $settings.enableAppSourceCop) { | ||
| # TODO: Missing implementation of around using latest release as a baseline (skipUpgrade) / Appsourcecop.json baseline implementation (AB#620310) | ||
| Write-Host "Checking for required upgrades using AppSourceCop..." | ||
| } | ||
|
|
||
| # Update the app jsons with version number (and other properties) from the app manifest files | ||
| Update-AppJsonProperties -Folders ($settings.appFolders + $settings.testFolders) ` | ||
| -MajorMinorVersion $versionNumber.MajorMinorVersion -BuildNumber $versionNumber.BuildNumber -RevisionNumber $versionNumber.RevisionNumber ` | ||
| -BuildBy $buildMetadata.BuildBy -BuildUrl $buildMetadata.BuildUrl | ||
|
|
||
| # Collect common parameters for Build-AppsInWorkspace | ||
| $buildParams = @{ | ||
| CompilerFolder = $compilerFolder | ||
| PackageCachePath = $packageCachePath | ||
| LogDirectory = $buildArtifactFolder | ||
| Ruleset = $rulesetPath | ||
| AssemblyProbingPaths = (Get-AssemblyProbingPaths -CompilerFolder $compilerFolder) | ||
| PreprocessorSymbols = $settings.preprocessorSymbols | ||
| Features = $settings.features | ||
| MajorMinorVersion = $versionNumber.MajorMinorVersion | ||
| BuildNumber = $versionNumber.BuildNumber | ||
| RevisionNumber = $versionNumber.RevisionNumber | ||
| MaxCpuCount = $settings.workspaceCompilation.parallelism | ||
| SourceRepositoryUrl = $buildMetadata.SourceRepositoryUrl | ||
| SourceCommit = $buildMetadata.SourceCommit | ||
| ReportSuppressedDiagnostics = $settings.reportSuppressedDiagnostics | ||
| EnableExternalRulesets = $settings.enableExternalRulesets | ||
| PreCompileApp = $scriptOverrides['PreCompileApp'] | ||
| PostCompileApp = $scriptOverrides['PostCompileApp'] | ||
| Analyzers = (Get-CodeAnalyzers -Settings $settings) | ||
| CustomAnalyzers = (Get-CustomAnalyzers -Settings $settings -CompilerFolder $compilerFolder) | ||
| } | ||
|
|
||
| # Start compilation | ||
| $appFiles = @() | ||
| $testAppFiles = @() | ||
| try { | ||
| if ($settings.appFolders.Count -gt 0) { | ||
| # Compile Apps | ||
| $appFiles = Build-AppsInWorkspace @buildParams ` | ||
| -Folders $settings.appFolders ` | ||
| -OutFolder $appOutputFolder ` | ||
| -AppType 'app' | ||
| } | ||
|
|
||
| if ($settings.testFolders.Count -gt 0) { | ||
| if (-not ($settings.enableCodeAnalyzersOnTestApps)) { | ||
| $buildParams.Analyzers = @() | ||
| } | ||
|
|
||
| # Compile Test Apps | ||
| $testAppFiles = Build-AppsInWorkspace @buildParams ` | ||
| -Folders $settings.testFolders ` | ||
| -OutFolder $testAppOutputFolder ` | ||
| -AppType 'testApp' | ||
| } | ||
|
|
||
| } finally { | ||
| New-BuildOutputFile -BuildArtifactFolder $buildArtifactFolder -BuildOutputPath (Join-Path $projectFolder "BuildOutput.txt") -DisplayInConsole -FailOn $settings.failOn | ||
| } | ||
|
|
||
| # OUTPUT - Output the updated list of dependency apps and test apps to JSON files for downstream steps | ||
| $dependencyApps += $appFiles | ||
| $dependencyTestApps += $testAppFiles | ||
| Trace-Information -message "Compilation completed. Compiled $(@($appFiles).Count) apps and $(@($testAppFiles).Count) test apps." | ||
|
|
||
| ConvertTo-Json $dependencyApps -Depth 99 -Compress | Out-File -Encoding UTF8 -FilePath $dependencyAppsJson | ||
| ConvertTo-Json $dependencyTestApps -Depth 99 -Compress | Out-File -Encoding UTF8 -FilePath $dependencyTestAppsJson | ||
| } finally { | ||
| Pop-Location | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.