@@ -32,25 +32,17 @@ stages:
32
32
- job : A
33
33
displayName : Build Umbraco CMS
34
34
pool :
35
- vmImage : ' ubuntu -latest'
35
+ vmImage : " windows -latest"
36
36
steps :
37
37
- checkout : self
38
- fetchDepth : 0
39
- submodules : true
38
+ submodules : false
39
+ lfs : false,
40
+ fetchDepth : 500
41
+ - template : templates/backoffice-install.yml
40
42
- task : UseDotNet@2
41
43
displayName : Use .NET SDK from global.json
42
44
inputs :
43
45
useGlobalJson : true
44
- - template : templates/backoffice-install.yml
45
- - script : npm run build:for:cms
46
- displayName : Run build (Bellissima)
47
- workingDirectory : src/Umbraco.Web.UI.Client
48
- - script : npm ci --no-fund --no-audit --prefer-offline
49
- displayName : Run npm ci (Login)
50
- workingDirectory : src/Umbraco.Web.UI.Login
51
- - script : npm run build
52
- displayName : Run npm build (Login)
53
- workingDirectory : src/Umbraco.Web.UI.Login
54
46
- task : DotNetCoreCLI@2
55
47
displayName : Run dotnet restore
56
48
inputs :
@@ -62,7 +54,7 @@ stages:
62
54
inputs :
63
55
command : build
64
56
projects : $(solution)
65
- arguments : ' --configuration $(buildConfiguration) --no-restore --property:ContinuousIntegrationBuild=true --property:GeneratePackageOnBuild=true --property:PackageOutputPath=$(Build.ArtifactStagingDirectory)/nupkg'
57
+ arguments : " --configuration $(buildConfiguration) --no-restore --property:ContinuousIntegrationBuild=true --property:GeneratePackageOnBuild=true --property:PackageOutputPath=$(Build.ArtifactStagingDirectory)/nupkg"
66
58
- task : PublishPipelineArtifact@1
67
59
displayName : Publish nupkg
68
60
inputs :
@@ -74,6 +66,33 @@ stages:
74
66
targetPath : $(Build.SourcesDirectory)
75
67
artifactName : build_output
76
68
69
+ - job : B
70
+ displayName : Build Bellissima Package
71
+ pool :
72
+ vmImage : " ubuntu-latest"
73
+ steps :
74
+ - checkout : self
75
+ submodules : false
76
+ lfs : false,
77
+ fetchDepth : 500
78
+ - template : templates/backoffice-install.yml
79
+ - script : npm run build:for:npm
80
+ displayName : Run build:for:npm
81
+ workingDirectory : src/Umbraco.Web.UI.Client
82
+ - bash : |
83
+ echo "##[command]Running npm pack"
84
+ echo "##[debug]Output directory: $(Build.ArtifactStagingDirectory)"
85
+ mkdir $(Build.ArtifactStagingDirectory)/npm
86
+ npm pack --pack-destination $(Build.ArtifactStagingDirectory)/npm
87
+ mv .npmrc $(Build.ArtifactStagingDirectory)/npm/
88
+ displayName: Run npm pack
89
+ workingDirectory: src/Umbraco.Web.UI.Client
90
+ - task : PublishPipelineArtifact@1
91
+ displayName : Publish Bellissima npm artifact
92
+ inputs :
93
+ targetPath : $(Build.ArtifactStagingDirectory)/npm
94
+ artifactName : npm
95
+
77
96
- stage : E2E
78
97
displayName : E2E Tests
79
98
dependsOn : Build
@@ -209,8 +228,8 @@ stages:
209
228
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
210
229
211
230
# Install Playwright and dependencies
212
- - pwsh : npx playwright install --with-deps
213
- displayName : Install Playwright
231
+ - pwsh : npx playwright install chromium
232
+ displayName : Install Playwright only with Chromium browser
214
233
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
215
234
216
235
# Test
@@ -381,8 +400,8 @@ stages:
381
400
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
382
401
383
402
# Install Playwright and dependencies
384
- - pwsh : npx playwright install --with-deps
385
- displayName : Install Playwright
403
+ - pwsh : npx playwright install chromium
404
+ displayName : Install Playwright only with Chromium browser
386
405
workingDirectory : tests/Umbraco.Tests.AcceptanceTest
387
406
388
407
# Test
0 commit comments