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

Cleanup azure pipelines steps #1390

Merged
merged 3 commits into from
Nov 6, 2023
Merged
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
21 changes: 9 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# Universal Windows Platform
# Build a Universal Windows Platform project using Visual Studio.
# Add steps that test and distribute an app, save build artifacts, and more:
# https://aka.ms/yaml

trigger:
- main
- "dev/create-ci"

pool:
vmImage: "windows-2022"
Expand All @@ -24,19 +18,21 @@ steps:
versionSpec: 5.8.0

- task: NuGetCommand@2
displayName: Restore NuGet Packages for WinUI Gallery
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'config'
nugetConfigPath: '$(System.DefaultWorkingDirectory)\nuget.config'

- task: PowerShell@2
displayName: GenerateTestPFX.ps1
displayName: Generate Test Signing Certificate
inputs:
targetType: filePath
filePath: build/GenerateTestPFX.ps1

- task: DotNetCoreCLI@2
displayName: Build WinUI Gallery Package
inputs:
command: 'publish'
publishWebProjects: false
Expand All @@ -46,39 +42,39 @@ steps:
modifyOutputPath: false

- task: PowerShell@2
displayName: Install WinUI Gallery Package
inputs:
targetType: "inline"
script: |
# Find correct folder and run app install script.
cd $(appxPackageDir)

$AppBundle = Get-ChildItem -Filter WinUIGallery*Test -Name
echo $AppBundle
cd $AppBundle
ls
./Install.ps1 -Force
Get-AppxPackage
errorActionPreference: "continue"
failOnStderr: true
workingDirectory: "$(System.DefaultWorkingDirectory)"

- task: NuGetCommand@2
displayName: Restore packages
displayName: Restore Packages for UI Tests Project
inputs:
restoreSolution: "$(solutionUITests)"

- task: VSBuild@1
displayName: Build UI Tests Project
inputs:
platform: "$(buildPlatform)"
solution: "$(solutionUITests)"
configuration: "$(buildConfiguration)"

- task: Windows Application Driver@0
displayName: Start Windows Application Driver
inputs:
OperationType: "Start"
AgentResolution: "1080p"

- task: VSTest@2
displayName: Run UI Tests
inputs:
testSelector: "testAssemblies"
testAssemblyVer2: |
Expand All @@ -89,5 +85,6 @@ steps:
searchFolder: "$(System.DefaultWorkingDirectory)"

- task: Windows Application Driver@0
displayName: Stop Windows Application Driver
inputs:
OperationType: "Stop"