Skip to content

Commit

Permalink
[TypeSpec Validation] Ensure "All" pipeline fails if no specs are val…
Browse files Browse the repository at this point in the history
…idated (#26322)

* tsv fail if - All didn't check any specs

* testing

* Update eng/scripts/Get-TypeSpec-Folders.ps1
  • Loading branch information
ckairen authored Oct 20, 2023
1 parent ee9e300 commit 670ec5a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eng/scripts/Validate-TypeSpec.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ if ($typespecFolders) {
}
LogGroupEnd
}
} else {
if ($CheckAll) {
LogError "TypeSpec Validation - All did not validate any specs"
LogJobFailure
exit 1
}
}

if ($typespecFoldersWithFailures.Count -gt 0) {
Expand Down

0 comments on commit 670ec5a

Please sign in to comment.