Skip to content

Commit

Permalink
[TypeSpec Validation] Add "specification/common-types" to triggers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeharder authored and jnlycklama committed Nov 8, 2023
1 parent ebd4681 commit 4e94f8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions eng/pipelines/typespec-validation-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pr:
- package.json
- tsconfig.json
- eng
- specification/common-types

jobs:
- job: Validate_All_Specs
Expand Down
4 changes: 3 additions & 1 deletion eng/scripts/Get-TypeSpec-Folders.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ else {

$engFiles = $changedFiles | Where-Object {if ($_) { $_.StartsWith('eng') }}

$commonTypesFiles = $changedFiles | Where-Object {if ($_) { $_.StartsWith('specification/common-types') }}

$rootFilesImpactingTypeSpec = @(
".gitattributes",
".prettierrc.json",
Expand All @@ -40,7 +42,7 @@ else {
)
$repoRootFiles = $changedFiles | Where-Object {$_ -in $rootFilesImpactingTypeSpec}

if (($Env:BUILD_REPOSITORY_NAME -eq 'azure/azure-rest-api-specs') -and ($engFiles -or $repoRootFiles)) {
if (($Env:BUILD_REPOSITORY_NAME -eq 'azure/azure-rest-api-specs') -and ($engFiles -or $commonTypesFiles -or $repoRootFiles)) {
$changedFiles = $allChangedFiles
}
else {
Expand Down

0 comments on commit 4e94f8b

Please sign in to comment.