-
Notifications
You must be signed in to change notification settings - Fork 8
/
azure-pipelines.yml
49 lines (43 loc) · 1.07 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
pool:
vmImage: ubuntu-22.04
trigger:
branches:
include:
- main
- features/*
paths:
exclude:
- .circleci/config.yml
- .github/workflows/build.yml
- .vscode/**
- appveyor.yml
- LICENSE
- README.md
steps:
- task: UseDotNet@2
displayName: 'Install .NET SDK 8'
inputs:
packageType: sdk
version: 8.0.x
installationPath: $(Agent.ToolsDirectory)/dotnet
- bash: |
dotnet tool restore
displayName: 'Restoring "Cake.Tool" .NET local tool'
- bash: |
export PATH="$PATH:$HOME/.dotnet/tools"
export PATH="$HOME/.dotnet:$PATH"
dotnet cake build.cake --bootstrap
dotnet cake build.cake --pack
displayName: 'Build'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '*.xml'
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/test-results/junit'
condition: succeededOrFailed()
displayName: 'Publish Test Results'
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'NuGet packages'
targetPath: 'artifacts/packages'
displayName: 'Publish NuGet packages'