Skip to content

Commit 1141a99

Browse files
authored
[Pipelines] Convert pipeline to yml (#7496)
* Add pipeline * Rename file and change build platform
1 parent 8bf04f2 commit 1141a99

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.pipelines/dotnet-ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: $(Year:yy).$(Month).$(DayOfMonth).$(rev:r)
2+
3+
pr:
4+
branches:
5+
include:
6+
- main
7+
- feature/*
8+
- release/*
9+
10+
trigger:
11+
branches:
12+
include:
13+
- main
14+
- feature/*
15+
- release/*
16+
batch: True
17+
18+
variables:
19+
solution: source/dotnet/AdaptiveCards.sln
20+
buildConfiguration: Release
21+
buildPlatform: any cpu
22+
23+
pool:
24+
name: Azure Pipelines
25+
vmImage: windows-2019
26+
27+
steps:
28+
- task: UseDotNet@2
29+
displayName: 'Use .NET Core SDK'
30+
inputs:
31+
version: 5.x
32+
- task: NuGetToolInstaller@0
33+
displayName: 'Use NuGet 5.x'
34+
inputs:
35+
versionSpec: 5.x
36+
- task: NuGetCommand@2
37+
displayName: 'NuGet restore'
38+
inputs:
39+
restoreSolution: '$(solution)'
40+
feedsToUse: config
41+
- task: VSBuild@1
42+
displayName: 'Build solution source/dotnet/AdaptiveCards.sln'
43+
inputs:
44+
solution: '$(solution)'
45+
platform: '$(buildPlatform)'
46+
configuration: '$(buildConfiguration)'
47+
- task: VSTest@2
48+
displayName: 'VsTest - testAssemblies'
49+
inputs:
50+
testAssemblyVer2: |
51+
**\!(ref)\*.test.dll
52+
!**\obj\**
53+
searchFolder: '$(System.DefaultWorkingDirectory)\source\dotnet'
54+
runInParallel: true
55+
runTestsInIsolation: true
56+
codeCoverageEnabled: true
57+
platform: '$(buildPlatform)'
58+
configuration: '$(buildConfiguration)'
59+
failOnMinTestsNotRun: true
60+
diagnosticsEnabled: True
61+
- task: PowerShell@1
62+
displayName: 'Run all tests'
63+
inputs:
64+
scriptName: source/dotnet/RunAllTests.ps1
65+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
66+
displayName: 'Component Detection'

0 commit comments

Comments
 (0)