Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run test tasks if succeededOrFailed #4759

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pr:
paths:
include:
- azure-pipelines.yml
- templates/*
- src/*
- schemas/JSON/manifests/*

Expand Down
4 changes: 4 additions & 0 deletions templates/e2e-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ steps:
Write-Host "##vso[task.setvariable variable=TestSigningCert.CerPath;]$certCerPath"
Write-Host "##vso[task.setvariable variable=TestSigningCert.Password;]$certPassword"
displayName: Create test codesigning cert
condition: succeededOrFailed()

- pwsh: |
$httpsCertPath = Join-Path $(Agent.TempDirectory) HttpsCert.pfx
Expand All @@ -43,12 +44,15 @@ steps:
Write-Host "##vso[task.setvariable variable=HttpsCert.Path;]$httpsCertPath"
Write-Host "##vso[task.setvariable variable=HttpsCert.Password;]$httpsCertPassword"
displayName: Create and install localhost HTTPS cert
condition: succeededOrFailed()

- pwsh: ${{ parameters.sourceDir }}\src\LocalhostWebServer\Run-LocalhostWebServer.ps1 -CertPath $(HttpsCert.Path) -CertPassword $(HttpsCert.Password) -OutCertFile $(Agent.TempDirectory)\servercert.cer ${{ parameters.localhostWebServerArgs }}
displayName: Launch LocalhostWebServer
condition: succeededOrFailed()

- task: PowerShell@2
displayName: Setup Local PS Repository
condition: succeededOrFailed()
inputs:
filePath: '${{ parameters.sourceDir }}\src\AppInstallerCLIE2ETests\TestData\Configuration\Init-TestRepository.ps1'
arguments: '-Force'
Expand Down
1 change: 1 addition & 0 deletions templates/e2e-test.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ steps:

- task: VSTest@2
displayName: Run ${{ parameters.title }}
condition: succeededOrFailed()
inputs:
testRunTitle: ${{ parameters.title }}
testSelector: 'testAssemblies'
Expand Down
Loading