This repository has been archived by the owner on Apr 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
83 lines (81 loc) · 2.21 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
trigger:
- develop
- main
- release/*
- hotfix/*
pr:
- develop
- release/*
- hotfix/*
jobs:
# Build
- job: Build
pool:
vmImage: 'windows-2022'
steps:
# .NET 5 required for GitVersion
- task: UseDotNet@2
inputs:
version: '5.x'
displayName: 'Install .NET 5'
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
- task: UseDotNet@2
inputs:
version: '7.x'
displayName: 'Install .NET 7'
- task: UseDotNet@2
inputs:
version: '8.x'
displayName: 'Install .NET 8'
- powershell: ./build.ps1
displayName: 'Build'
- publish: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
artifact: NuGet Package
displayName: 'Publish NuGet packages as build artifact'
# Integration Tests Frosting Windows (.NET 6)
- job: Test_Frosting_Windows_Net6
displayName: Integration Tests Frosting Windows (.NET 6)
dependsOn: Build
pool:
vmImage: 'windows-2019'
steps:
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/frosting/net6.0
displayName: 'Run integration tests'
# Integration Tests Script Runner Windows (.NET tool)
- job: Test_Script_Runner_Windows_DotNetTool
displayName: Integration Tests Script Runner Windows (.NET tool)
dependsOn: Build
pool:
vmImage: 'windows-2019'
steps:
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
- powershell: ./build.ps1 --verbosity=diagnostic
workingDirectory: ./tests/script-runner
displayName: 'Run integration tests'