Skip to content

Commit 670ec5a

Browse files
authored
[TypeSpec Validation] Ensure "All" pipeline fails if no specs are validated (#26322)
* tsv fail if - All didn't check any specs * testing * Update eng/scripts/Get-TypeSpec-Folders.ps1
1 parent ee9e300 commit 670ec5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

eng/scripts/Validate-TypeSpec.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ if ($typespecFolders) {
2929
}
3030
LogGroupEnd
3131
}
32+
} else {
33+
if ($CheckAll) {
34+
LogError "TypeSpec Validation - All did not validate any specs"
35+
LogJobFailure
36+
exit 1
37+
}
3238
}
3339

3440
if ($typespecFoldersWithFailures.Count -gt 0) {

0 commit comments

Comments
 (0)