2021-01-27 17:14:25 +03:00
|
|
|
jobs:
|
|
|
|
- job: Wasm_UITests
|
2024-06-06 11:12:29 +03:00
|
|
|
timeoutInMinutes: 90
|
2021-01-27 17:14:25 +03:00
|
|
|
displayName: 'WebAssembly UI Tests'
|
|
|
|
container: unoplatform/wasm-build:3.0
|
|
|
|
|
|
|
|
pool:
|
2023-06-19 21:32:32 +03:00
|
|
|
vmImage: 'ubuntu-latest'
|
2021-01-27 17:14:25 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
NUGET_PACKAGES: $(build.sourcesdirectory)/.nuget
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- checkout: self
|
|
|
|
clean: true
|
|
|
|
|
|
|
|
- task: UseDotNet@2
|
2023-01-24 00:40:02 +03:00
|
|
|
displayName: 'Use .NET SDK'
|
2021-12-17 17:54:29 +03:00
|
|
|
retryCountOnTaskFailure: 3
|
2021-01-27 17:14:25 +03:00
|
|
|
inputs:
|
|
|
|
packageType: sdk
|
2024-05-21 11:39:14 +03:00
|
|
|
version: 8.0.100
|
2021-01-27 17:14:25 +03:00
|
|
|
|
2022-11-23 20:29:34 +03:00
|
|
|
- template: templates/canary-updater.yml
|
|
|
|
|
2021-01-27 17:14:25 +03:00
|
|
|
- bash: |
|
|
|
|
chmod +x build/scripts/wasm-uitest-run.sh
|
|
|
|
build/scripts/wasm-uitest-run.sh
|
|
|
|
env:
|
|
|
|
BUILD_SOURCESDIRECTORY: "$(build.sourcesdirectory)"
|
|
|
|
BUILD_ARTIFACTSTAGINGDIRECTORY: "$(build.artifactstagingdirectory)"
|
|
|
|
displayName: 'Running build'
|
|
|
|
|
2022-05-20 14:36:08 +03:00
|
|
|
- task: CopyFiles@2
|
|
|
|
displayName: Copy Wasm output
|
|
|
|
inputs:
|
2024-07-22 11:34:59 +03:00
|
|
|
SourceFolder: Uno.Gallery/bin/Release/net8.0-browserwasm/dist
|
2022-05-20 14:36:08 +03:00
|
|
|
Contents: '**/*.*'
|
|
|
|
TargetFolder: $(Build.ArtifactStagingDirectory)/bin
|
|
|
|
|
2024-08-06 22:47:31 +03:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
condition: always()
|
|
|
|
retryCountOnTaskFailure: 3
|
|
|
|
inputs:
|
|
|
|
testRunTitle: 'WebAssembly Test Run'
|
|
|
|
testResultsFormat: 'NUnit'
|
|
|
|
testResultsFiles: '$(build.sourcesdirectory)/build/TestResult.xml'
|
|
|
|
failTaskOnFailedTests: true
|
|
|
|
failTaskOnMissingResultsFile: true
|
2021-01-27 17:14:25 +03:00
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
2021-12-17 17:54:29 +03:00
|
|
|
retryCountOnTaskFailure: 3
|
2021-01-27 17:14:25 +03:00
|
|
|
condition: always()
|
|
|
|
inputs:
|
|
|
|
PathtoPublish: $(build.artifactstagingdirectory)
|
|
|
|
ArtifactName: uno-uitest-tests
|
2023-01-23 23:19:53 +03:00
|
|
|
ArtifactType: Container
|