-
Notifications
You must be signed in to change notification settings - Fork 325
Expand file tree
/
Copy pathpublic-build.yml
More file actions
135 lines (126 loc) · 4.2 KB
/
public-build.yml
File metadata and controls
135 lines (126 loc) · 4.2 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# This pipeline is used for public PR and CI builds.
# Run on changes in main
trigger:
batch: true
branches:
include:
- main
- durabletask-core-v2
- vabachu/v320-release
# Run nightly to catch new CVEs and to report SDL often.
schedules:
- cron: "0 0 * * *"
displayName: Nightly Run
branches:
include:
- main
- durabletask-core-v2
always: true # Run pipeline irrespective of no code changes since last successful run
# Run on all PRs
pr:
branches:
include:
- '*'
# This allows us to reference 1ES templates, our pipelines extend a pre-existing template
resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
# The template we extend injects compliance-checks into the pipeline, such as SDL and CodeQL
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows
sdl:
codeql:
compiled:
enabled: true
runSourceLanguagesInSourceAnalysis: true
settings:
# PR's from forks should not have permissions to set tags.
skipBuildTagsForGitHubPullRequests: ${{ variables['System.PullRequest.IsFork'] }}
stages:
- stage: DTFxCoreValidate
jobs:
- job: Validate
strategy:
parallel: 13
steps:
# Build the code and the tests
- template: /eng/templates/build-steps.yml@self
parameters:
# The tests only build in the 'Debug' configuration.
# In the release configuration, the packages don't expose their internals
# to the test projects.
buildConfiguration: 'Debug'
buildTests: true
# Run tests
- template: /eng/templates/test.yml@self
parameters:
testAssembly: 'tests/**/DurableTask.Core.Tests.dll'
artifactName: 'CoreTests'
- stage: DTFxASValidate
dependsOn: []
jobs:
- job: Validate
strategy:
parallel: 13
steps:
# Build the code and the tests
- template: /eng/templates/build-steps.yml@self
parameters:
# The tests only build in the 'Debug' configuration.
# In the release configuration, the packages don't expose their internals
# to the test projects.
buildConfiguration: 'Debug'
buildTests: true
# Run tests
- template: /eng/templates/test.yml@self
parameters:
testAssembly: 'tests/**/DurableTask.AzureStorage.Tests.dll'
artifactName: 'AzureStorageTests'
- stage: DTFxEmulatorValidate
dependsOn: []
jobs:
- job: Validate
strategy:
parallel: 13
steps:
# Build the code and the tests
- template: /eng/templates/build-steps.yml@self
parameters:
# The tests only build in the 'Debug' configuration.
# In the release configuration, the packages don't expose their internals
# to the test projects.
buildConfiguration: 'Debug'
buildTests: true
# Run tests
- template: /eng/templates/test.yml@self
parameters:
testAssembly: 'tests/**/DurableTask.Emulator.Tests.dll'
artifactName: 'EmulatorTests'
- stage: DTFxSBValidate
dependsOn: []
jobs:
- job: Validate
strategy:
parallel: 13
steps:
# Build the code and the tests
- template: /eng/templates/build-steps.yml@self
parameters:
# The tests only build in the 'Debug' configuration.
# In the release configuration, the packages don't expose their internals
# to the test projects.
buildConfiguration: 'Debug'
buildTests: true
# Run tests
- template: /eng/templates/test.yml@self
parameters:
testAssembly: 'tests/**/DurableTask.ServiceBus.Tests.dll'
artifactName: 'ServiceBusTests'