* Generate BOM files on build * Upload BOM to Dependency Track * Move Backoffice BOM generation to right after install The build and/or pack steps are deleting files that are needed for the BOM to be generated properly. * Split the BOM uploads into different jobs * Fix wrong usage of parameters * Move order of dependency track stage * Fix wrong umbracoVersion value * Small fixes * Log curl response headers * Correct version sent to dependency track * Adjusted curl flags * Fix bom file path * Fix dotnet bom file name * Add Login UI to dependency track * Generate BOM for E2E Tests * Move dependency track stage * Move acceptance test .env generation to e2e install template Needed as the post install script is expecting this to exist. * Use major version if public release * Missing ')' * Reverted npm install command changes in static assets project
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
parameters:
|
|
- name: nodeVersion
|
|
type: string
|
|
default: ''
|
|
|
|
- name: npm_config_cache
|
|
type: string
|
|
default: ''
|
|
|
|
- name: PlaywrightUserEmail
|
|
type: string
|
|
default: ''
|
|
|
|
- name: PlaywrightPassword
|
|
type: string
|
|
default: ''
|
|
|
|
- name: ASPNETCORE_URLS
|
|
type: string
|
|
default: ''
|
|
|
|
steps:
|
|
- task: NodeTool@0
|
|
displayName: Use Node.js $(nodeVersion)
|
|
inputs:
|
|
versionSpec: $(nodeVersion)
|
|
|
|
- pwsh: |
|
|
"UMBRACO_USER_LOGIN=${{ parameters.PlaywrightUserEmail }}
|
|
UMBRACO_USER_PASSWORD=${{ parameters.PlaywrightPassword }}
|
|
URL=${{ parameters.ASPNETCORE_URLS }}
|
|
STORAGE_STAGE_PATH=$(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/playwright/.auth/user.json
|
|
CONSOLE_ERRORS_PATH=$(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/console-errors.json" | Out-File .env
|
|
displayName: Generate .env
|
|
workingDirectory: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest
|
|
|
|
# Cache and restore NPM packages
|
|
- task: Cache@2
|
|
displayName: Cache NPM packages
|
|
inputs:
|
|
key: 'npm_e2e | "$(Agent.OS)" | $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest/package-lock.json'
|
|
restoreKeys: |
|
|
npm_e2e | "$(Agent.OS)"
|
|
npm_e2e
|
|
path: ${{ parameters.npm_config_cache }}
|
|
|
|
- script: npm ci --no-fund --no-audit --prefer-offline
|
|
workingDirectory: $(Build.SourcesDirectory)/tests/Umbraco.Tests.AcceptanceTest
|
|
displayName: Restore NPM packages
|