File: verify-samples.yml

package info (click to toggle)
golang-github-azure-azure-sdk-for-go 68.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 556,256 kB
  • sloc: javascript: 196; sh: 96; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
parameters:
  - name: ServiceDirectory
    type: string
    default: not-specified
  - name: ScriptDirectory
    type: string
    default: eng/common/scripts

steps:
  - pwsh: |
      # If the last path segment is an absolute path it will be used entirely.
      $root = [System.IO.Path]::Combine('$(Build.SourcesDirectory)', 'sdk', '${{ parameters.ServiceDirectory }}')
      Get-ChildItem $root -Filter *.md -Recurse | ${{ parameters.ScriptDirectory }}/Test-SampleMetadata.ps1 -AllowParentProducts
    displayName: Verify sample metadata
    workingDirectory: $(Build.SourcesDirectory)