forked from microsoft/ALAppExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.42 KB
/
Build.yml
File metadata and controls
42 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on:
pull_request:
branches: [ master ]
jobs:
BuildSystemApplication:
runs-on: windows-2019
env:
BC_CONTAINER_USERNAME: admin
BC_CONTAINER_PASSWORD: P@ssword1
steps:
- uses: actions/checkout@v1
- name: Install BcContainerHelper
shell: powershell
run: Install-Module BcContainerHelper -Force
- name: Set up Business Central container
shell: powershell
run: >
New-BCContainer
-accept_eula
-containerName bcdev
-artifactUrl (Get-BcArtifactUrl -type sandbox -country us -select latest)
-alwaysPull
-auth NavUserPassword
-credential ([PSCredential]::new($Env:BC_CONTAINER_USERNAME, (ConvertTo-SecureString -String $Env:BC_CONTAINER_PASSWORD -AsPlainText -Force)))
-updateHosts
-additionalParameters @("--volume $Env:GITHUB_WORKSPACE\Modules\System`:c:\project")
-includeAL
- name: Compile System Application
shell: powershell
run: >
Compile-AppInBCContainer
-containerName bcdev
-credential ([PSCredential]::new($Env:BC_CONTAINER_USERNAME, (ConvertTo-SecureString -String $Env:BC_CONTAINER_PASSWORD -AsPlainText -Force)))
-appProjectFolder $Env:GITHUB_WORKSPACE\Modules\System
-appOutputFolder $Env:GITHUB_WORKSPACE\Modules\System
-EnableCodeCop
-EnableUICop