fix(ci): Dhivehi satellite on Linux builds, Dependabot cooldown

- EnableCustomCulture: on Ubuntu (no ICU data for Dhivehi) MSBuild kept
  ".dv-mv" in the resource name inside the satellite and did not treat
  the folder as a culture when copying it to referencing projects. The
  satellite test now reports what it found if this ever regresses.
- Dependabot waits seven days after a release before proposing it
  (zizmor dependabot-cooldown).
- RELEASING.md: the release commit goes through a pull request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
poli0981andClaude Opus 5.5 committed 2026-10-15 13:16:40 +07:00
1 parent 2529e9104a
commit 535cc85fe9
4 files changed
+36 -5

No files matched your search

+9
View File
@@ -6,6 +6,9 @@ updates:
schedule:
interval: weekly
day: monday
# Wait a week after a release before proposing it (security updates are not delayed).
cooldown:
default-days: 7
open-pull-requests-limit: 10
# The upgrade gate deliberately pins the Velopack library that Hash Tool 1.1.x shipped.
exclude-paths:
@@ -27,12 +30,18 @@ updates:
schedule:
interval: weekly
day: monday
# Wait a week after a release before proposing it (security updates are not delayed).
cooldown:
default-days: 7
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
day: monday
# Wait a week after a release before proposing it (security updates are not delayed).
cooldown:
default-days: 7
groups:
actions:
patterns: ["*"]
+6
View File
@@ -24,6 +24,12 @@
<NuGetAuditMode>all</NuGetAuditMode>
<NuGetAuditLevel>low</NuGetAuditLevel>
<!--
Treat every culture of the translations as valid even when the build machine's ICU does not know it (Dhivehi on
Ubuntu): otherwise its satellite assembly gets a wrong resource name and is not copied to referencing projects.
-->
<EnableCustomCulture>true</EnableCustomCulture>
<!-- ReferenceTrimmer reports package and project references that are never used. -->
<ReferenceTrimmerUseSymbolAnalysis>true</ReferenceTrimmerUseSymbolAnalysis>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
+4 -3
View File
@@ -6,9 +6,10 @@ developer machine.
## Steps
1. Make sure `main` is green (CI, Security).
2. On `main`, in one commit `chore(release): X.Y.Z`:
- set `<Version>` in `Directory.Build.props`;
- rename `## [Unreleased]` / `## [X.Y.Z] - Unreleased` in `CHANGELOG.md` to `## [X.Y.Z] - YYYY-MM-DD`.
2. Open a pull request `chore(release): X.Y.Z` (`main` only accepts changes through pull requests) that:
- sets `<Version>` in `Directory.Build.props`;
- renames `## [Unreleased]` / `## [X.Y.Z] - Unreleased` in `CHANGELOG.md` to `## [X.Y.Z] - YYYY-MM-DD`.
Merge it once the checks pass.
3. *Actions → Release → Run workflow* on `main` with `version = X.Y.Z` (no `v`) and **publish unchecked** — a dry run.
4. When it is green, run it again with **publish checked**.
+17 -2
View File
@@ -81,12 +81,27 @@ public sealed partial class LocalizationTests
var resources = new ResourceManager("HashTool.App.Lang.Resources", typeof(App).Assembly);
foreach (var (_, code) in LanguagesJson().Where(l => l.Code != "en-US"))
{
var set = resources.GetResourceSet(CultureInfo.GetCultureInfo(code), createIfNotExists: true, tryParents: false);
Assert.True(set is not null, $"No satellite assembly for {code}");
var culture = CultureInfo.GetCultureInfo(code);
var set = resources.GetResourceSet(culture, createIfNotExists: true, tryParents: false);
Assert.True(set is not null, $"No resources for {code} ({SatelliteDiagnostics(culture)})");
Assert.Equal(Cultures[code.ToLowerInvariant()]["Menu_Create"], set.GetString("Menu_Create"));
}
}
private static string SatelliteDiagnostics(CultureInfo culture)
{
var folder = Path.Combine(AppContext.BaseDirectory, culture.Name);
try
{
var satellite = typeof(App).Assembly.GetSatelliteAssembly(culture);
return $"culture '{culture.Name}', satellite contains: {string.Join(", ", satellite.GetManifestResourceNames())}";
}
catch (Exception ex) when (ex is FileNotFoundException or FileLoadException)
{
return $"culture '{culture.Name}', folder {(Directory.Exists(folder) ? "exists" : "missing")}: {ex.GetType().Name}";
}
}
[Fact]
public void EveryKeyUsedByTheCodeExists()
{