Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/actions/infrastructure/path-filters/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ runs:
const globalConfigChanged = files.some(file => file === '.globalconfig' || file === 'nuget.config' || file === 'global.json');
console.log(`✓ Global config changed: ${globalConfigChanged}`);

const localizationConfigChanged = files.some(file => file === 'Localize/LocProject.json');
console.log(`✓ Localization config changed: ${localizationConfigChanged}`);

const packagingChanged = files.some(file =>
file === '.github/workflows/windows-ci.yml' ||
file === '.github/workflows/linux-ci.yml' ||
Expand All @@ -128,7 +131,7 @@ runs:
toolsCiPsm1Changed;
console.log(`→ Packaging changed: ${packagingChanged}`);

const source = mainSourceChanged || toolsChanged || githubChanged || propsChanged || testsChanged || globalConfigChanged;
const source = mainSourceChanged || toolsChanged || githubChanged || propsChanged || testsChanged || globalConfigChanged || localizationConfigChanged;
console.log(`→ Source (composite): ${source}`);

core.endGroup();
Expand Down
32 changes: 29 additions & 3 deletions test/powershell/engine/ResourceValidation/LocProject.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,40 @@ Describe "LocProject.json file validation" -Tags "CI" {
$realSourceFile = Join-Path $repoRoot $sourceFile

Test-Path -Path $realSourceFile | Should -BeTrue
$_.OutputPath | Should -BeExactly "$parentDir\"
$_.CopyOption | Should -BeExactly 'LangIDOnPathAndName'

if ($sourceFile -like '*.resx') {
$_.OutputPath | Should -BeExactly "$parentDir\"
$_.CopyOption | Should -BeExactly 'LangIDOnPathAndName'
}
elseif ($sourceFile -like '*.xml') {
$_.OutputPath + "en-US" | Should -BeExactly $parentDir
$_.CopyOption | Should -BeExactly 'LangIDOnPath'
}
else {
throw "Unexpected source file type: $sourceFile"
}
}
}

It 'Validate total resource count' -Skip:$skipTests {
$srcDir = Join-Path $repoRoot 'src'
$project = $locProject.Projects[0]

$resxLocItemCount = 0
$xmlLocItemCount = 0

foreach ($item in $project.LocItems) {
if ($item.SourceFile -like '*.resx') {
$resxLocItemCount++
}
elseif ($item.SourceFile -like '*.xml') {
$xmlLocItemCount++
}
else {
throw "Unexpected source file type: $($item.SourceFile)"
}
}

try {
Push-Location -Path $srcDir
$resDirs = Get-ChildItem 'resources' -Recurse -Directory | ForEach-Object FullName
Expand All @@ -48,7 +73,8 @@ Describe "LocProject.json file validation" -Tags "CI" {
$totalResourceCount += $count
}

$project.LocItems.Count | Should -Be $totalResourceCount
$resxLocItemCount | Should -Be $totalResourceCount
$xmlLocItemCount | Should -Be 1
}
finally {
Pop-Location
Expand Down
6 changes: 3 additions & 3 deletions tools/metadata.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"StableReleaseTag": "v7.6.5",
"StableReleaseTag": "v7.6.6",
"PreviewReleaseTag": "v7.7.0-preview.4",
"ServicingReleaseTag": "v7.0.13",
"ReleaseTag": "v7.6.5",
"LTSReleaseTag": ["v7.4.19", "v7.6.5"],
"ReleaseTag": "v7.6.6",
"LTSReleaseTag": ["v7.4.20", "v7.6.6"],
"NextReleaseTag": "v7.7.0-preview.5",
"LTSRelease": { "PublishToChannels": false, "Package": false },
"StableRelease": { "PublishToChannels": false, "Package": false }
Expand Down
Loading