Skip to content

Commit dbdc614

Browse files
heathsazure-sdk
authored andcommitted
Verify samples during CIs
Replaces #17999 for use in all language repos.
1 parent e55a470 commit dbdc614

File tree

2 files changed

+542
-0
lines changed

2 files changed

+542
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
parameters:
2+
- name: ServiceDirectory
3+
type: string
4+
default: not-specified
5+
- name: ScriptDirectory
6+
type: string
7+
default: eng/common/scripts
8+
- name: Condition
9+
type: boolean
10+
default: succeeded()
11+
12+
steps:
13+
- pwsh: |
14+
# If the last path segment is an absolute path it will be used entirely.
15+
$root = [System.IO.Path]::Combine('$(Build.SourcesDireectory)', 'sdk', '${{ parameters.ServiceDirectory }}')
16+
Get-ChildItem $root -Filter *.md -Recurse | ${{ parameters.ScriptDirectory }}\Test-SampleMetadata.ps1 -AllowParentProducts
17+
displayName: Verify sample metadata
18+
workingDirectory: $(Build.SourcesDirectory)
19+
condition: ${{ parameters.Condition }}

0 commit comments

Comments
 (0)