V15 QA Updated the build stage to align with the azure pipelines yml (#19235)
This commit is contained in:
@@ -32,25 +32,17 @@ stages:
|
|||||||
- job: A
|
- job: A
|
||||||
displayName: Build Umbraco CMS
|
displayName: Build Umbraco CMS
|
||||||
pool:
|
pool:
|
||||||
vmImage: 'ubuntu-latest'
|
vmImage: "windows-latest"
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
fetchDepth: 0
|
submodules: false
|
||||||
submodules: true
|
lfs: false,
|
||||||
|
fetchDepth: 500
|
||||||
|
- template: templates/backoffice-install.yml
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
displayName: Use .NET SDK from global.json
|
displayName: Use .NET SDK from global.json
|
||||||
inputs:
|
inputs:
|
||||||
useGlobalJson: true
|
useGlobalJson: true
|
||||||
- template: templates/backoffice-install.yml
|
|
||||||
- script: npm run build:for:cms
|
|
||||||
displayName: Run build (Bellissima)
|
|
||||||
workingDirectory: src/Umbraco.Web.UI.Client
|
|
||||||
- script: npm ci --no-fund --no-audit --prefer-offline
|
|
||||||
displayName: Run npm ci (Login)
|
|
||||||
workingDirectory: src/Umbraco.Web.UI.Login
|
|
||||||
- script: npm run build
|
|
||||||
displayName: Run npm build (Login)
|
|
||||||
workingDirectory: src/Umbraco.Web.UI.Login
|
|
||||||
- task: DotNetCoreCLI@2
|
- task: DotNetCoreCLI@2
|
||||||
displayName: Run dotnet restore
|
displayName: Run dotnet restore
|
||||||
inputs:
|
inputs:
|
||||||
@@ -62,7 +54,7 @@ stages:
|
|||||||
inputs:
|
inputs:
|
||||||
command: build
|
command: build
|
||||||
projects: $(solution)
|
projects: $(solution)
|
||||||
arguments: '--configuration $(buildConfiguration) --no-restore --property:ContinuousIntegrationBuild=true --property:GeneratePackageOnBuild=true --property:PackageOutputPath=$(Build.ArtifactStagingDirectory)/nupkg'
|
arguments: "--configuration $(buildConfiguration) --no-restore --property:ContinuousIntegrationBuild=true --property:GeneratePackageOnBuild=true --property:PackageOutputPath=$(Build.ArtifactStagingDirectory)/nupkg"
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: Publish nupkg
|
displayName: Publish nupkg
|
||||||
inputs:
|
inputs:
|
||||||
@@ -74,6 +66,33 @@ stages:
|
|||||||
targetPath: $(Build.SourcesDirectory)
|
targetPath: $(Build.SourcesDirectory)
|
||||||
artifactName: build_output
|
artifactName: build_output
|
||||||
|
|
||||||
|
- job: B
|
||||||
|
displayName: Build Bellissima Package
|
||||||
|
pool:
|
||||||
|
vmImage: "ubuntu-latest"
|
||||||
|
steps:
|
||||||
|
- checkout: self
|
||||||
|
submodules: false
|
||||||
|
lfs: false,
|
||||||
|
fetchDepth: 500
|
||||||
|
- template: templates/backoffice-install.yml
|
||||||
|
- script: npm run build:for:npm
|
||||||
|
displayName: Run build:for:npm
|
||||||
|
workingDirectory: src/Umbraco.Web.UI.Client
|
||||||
|
- bash: |
|
||||||
|
echo "##[command]Running npm pack"
|
||||||
|
echo "##[debug]Output directory: $(Build.ArtifactStagingDirectory)"
|
||||||
|
mkdir $(Build.ArtifactStagingDirectory)/npm
|
||||||
|
npm pack --pack-destination $(Build.ArtifactStagingDirectory)/npm
|
||||||
|
mv .npmrc $(Build.ArtifactStagingDirectory)/npm/
|
||||||
|
displayName: Run npm pack
|
||||||
|
workingDirectory: src/Umbraco.Web.UI.Client
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
displayName: Publish Bellissima npm artifact
|
||||||
|
inputs:
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)/npm
|
||||||
|
artifactName: npm
|
||||||
|
|
||||||
- stage: E2E
|
- stage: E2E
|
||||||
displayName: E2E Tests
|
displayName: E2E Tests
|
||||||
dependsOn: Build
|
dependsOn: Build
|
||||||
@@ -209,8 +228,8 @@ stages:
|
|||||||
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
||||||
|
|
||||||
# Install Playwright and dependencies
|
# Install Playwright and dependencies
|
||||||
- pwsh: npx playwright install --with-deps
|
- pwsh: npx playwright install chromium
|
||||||
displayName: Install Playwright
|
displayName: Install Playwright only with Chromium browser
|
||||||
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
@@ -381,8 +400,8 @@ stages:
|
|||||||
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
||||||
|
|
||||||
# Install Playwright and dependencies
|
# Install Playwright and dependencies
|
||||||
- pwsh: npx playwright install --with-deps
|
- pwsh: npx playwright install chromium
|
||||||
displayName: Install Playwright
|
displayName: Install Playwright only with Chromium browser
|
||||||
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
workingDirectory: tests/Umbraco.Tests.AcceptanceTest
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
|
|||||||
Reference in New Issue
Block a user