forked from AvaloniaUI/avalonia-dotnet-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
31 lines (31 loc) · 910 Bytes
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pool:
vmImage: 'windows-2019'
steps:
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 5.0.x'
inputs:
packageType: 'sdk'
version: 5.0.x
- task: DotNetCoreCLI@2
displayName: 'Pack Templates'
inputs:
packagesToPack: 'Avalonia.Templates.csproj'
command: pack
outputDir: '$(Build.ArtifactStagingDirectory)/NuGet'
verbosityPack: normal
- task: CmdLine@2
displayName: 'Install templates'
inputs:
script: 'dotnet new -i $(Build.ArtifactStagingDirectory)/NuGet/*.nupkg'
- task: PowerShell@2
displayName: 'Run Tests'
inputs:
filePath: 'tests/build-test.ps1'
failOnStdError: true
workingDirectory: 'tests'
- task: PublishBuildArtifacts@1
displayName: 'Publish Build Artifacts'
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/NuGet'
artifactName: 'NuGet'
condition: succeeded()