2020-12-01 04:13:19 +03:00
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
|
2021-02-16 20:10:41 +03:00
|
|
|
pr: none
|
|
|
|
trigger: none
|
2020-12-22 01:46:51 +03:00
|
|
|
|
2021-01-13 05:33:09 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
linux:
|
2022-06-20 22:28:42 +03:00
|
|
|
imageName: 'MMSUbuntu20.04TLS'
|
2021-01-13 05:33:09 +03:00
|
|
|
windows:
|
2022-06-20 22:28:42 +03:00
|
|
|
imageName: 'MMS2019TLS'
|
2021-01-13 05:33:09 +03:00
|
|
|
|
2020-12-01 04:13:19 +03:00
|
|
|
pool:
|
2022-07-07 01:24:06 +03:00
|
|
|
name: '1ES-Hosted-AzFunc'
|
|
|
|
demands:
|
|
|
|
- ImageOverride -equals $(imageName)
|
2020-12-01 04:13:19 +03:00
|
|
|
|
|
|
|
steps:
|
2023-10-17 02:03:34 +03:00
|
|
|
- task: AzureKeyVault@2
|
|
|
|
inputs:
|
|
|
|
azureSubscription: 'Simple Batch(0b894477-1614-4c8d-8a9b-a697a24596b8)'
|
|
|
|
KeyVaultName: 'powershell-worker'
|
|
|
|
SecretsFilter: '*'
|
|
|
|
RunAsPreJob: true
|
2021-10-28 20:42:27 +03:00
|
|
|
- pwsh: |
|
2022-02-04 09:15:48 +03:00
|
|
|
Import-Module "./tools/helper.psm1" -Force
|
|
|
|
Install-Dotnet
|
|
|
|
displayName: 'Install .NET 6.0'
|
2021-10-28 20:42:27 +03:00
|
|
|
|
2020-12-01 04:13:19 +03:00
|
|
|
- pwsh: ./test/E2E/Start-E2ETest.ps1 -UseCoreToolsBuildFromIntegrationTests
|
|
|
|
env:
|
|
|
|
AzureWebJobsStorage: $(AzureWebJobsStorage)
|
|
|
|
AzureWebJobsCosmosDBConnectionString: $(AzureWebJobsCosmosDBConnectionString)
|
|
|
|
AzureWebJobsServiceBus: $(AzureWebJobsServiceBus)
|
|
|
|
AzureWebJobsEventHubSender: $(AzureWebJobsEventHubSender)
|
|
|
|
FUNCTIONS_WORKER_RUNTIME : "powershell"
|
|
|
|
displayName: 'Running PowerShell language worker E2E Tests'
|
|
|
|
|
|
|
|
- task: PublishTestResults@2
|
|
|
|
inputs:
|
|
|
|
testResultsFormat: 'VSTest'
|
|
|
|
testResultsFiles: '**/*.trx'
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
condition: succeededOrFailed()
|