Skip to content

Commit 5f32916

Browse files
azure-sdkheaths
andauthored
Sync eng/common directory with azure-sdk-tools for PR 1555 (#14883)
* Verify samples during CIs Replaces Azure/azure-sdk-for-python#17999 for use in all language repos. * Move exit to proper scope * Use verify-samples template Co-authored-by: Heath Stewart <[email protected]>
1 parent 1cb6992 commit 5f32916

File tree

3 files changed

+552
-0
lines changed

3 files changed

+552
-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)