Skip to content

Commit 103631d

Browse files
authored
V15 QA Updated the build stage to align with the azure pipelines yml (#19235)
1 parent 1b19ca7 commit 103631d

File tree

1 file changed

+37
-18
lines changed

1 file changed

+37
-18
lines changed

build/nightly-E2E-test-pipelines.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,17 @@ stages:
3232
- job: A
3333
displayName: Build Umbraco CMS
3434
pool:
35-
vmImage: 'ubuntu-latest'
35+
vmImage: "windows-latest"
3636
steps:
3737
- checkout: self
38-
fetchDepth: 0
39-
submodules: true
38+
submodules: false
39+
lfs: false,
40+
fetchDepth: 500
41+
- template: templates/backoffice-install.yml
4042
- task: UseDotNet@2
4143
displayName: Use .NET SDK from global.json
4244
inputs:
4345
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
5446
- task: DotNetCoreCLI@2
5547
displayName: Run dotnet restore
5648
inputs:
@@ -62,7 +54,7 @@ stages:
6254
inputs:
6355
command: build
6456
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"
6658
- task: PublishPipelineArtifact@1
6759
displayName: Publish nupkg
6860
inputs:
@@ -74,6 +66,33 @@ stages:
7466
targetPath: $(Build.SourcesDirectory)
7567
artifactName: build_output
7668

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+
7796
- stage: E2E
7897
displayName: E2E Tests
7998
dependsOn: Build
@@ -209,8 +228,8 @@ stages:
209228
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
210229

211230
# 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
214233
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
215234

216235
# Test
@@ -381,8 +400,8 @@ stages:
381400
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
382401

383402
# 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
386405
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
387406

388407
# Test

0 commit comments

Comments
 (0)