2021-01-27 17:14:25 +03:00
|
|
|
jobs:
|
|
|
|
- job: Wasm_UITests
|
|
|
|
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:34:09 +03:00
|
|
|
version: 8.0.101
|
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-05-20 16:39:48 +03:00
|
|
|
SourceFolder: Uno.Gallery/Uno.Gallery.Wasm/bin/Release/net8.0/dist
|
2022-05-20 14:36:08 +03:00
|
|
|
Contents: '**/*.*'
|
|
|
|
TargetFolder: $(Build.ArtifactStagingDirectory)/bin
|
|
|
|
|
2021-01-27 17:14:25 +03:00
|
|
|
- task: PublishTestResults@2
|
|
|
|
condition: always()
|
2021-12-17 17:54:29 +03:00
|
|
|
retryCountOnTaskFailure: 3
|
2021-01-27 17:14:25 +03:00
|
|
|
inputs:
|
|
|
|
testRunTitle: 'WebAssembly Test Run'
|
|
|
|
testResultsFormat: 'NUnit'
|
|
|
|
testResultsFiles: '$(build.sourcesdirectory)/build/TestResult.xml'
|
2021-02-05 15:28:37 +03:00
|
|
|
failTaskOnFailedTests: 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
|