Regenerate runtime publish locks
Build and test / test (macos-latest) (push) Canceled after 0s
Build and test / test (ubuntu-24.04) (push) Canceled after 0s
Build and test / test (windows-latest) (push) Canceled after 0s
Build and test / apple-client (push) Canceled after 0s

This commit is contained in:
2026-09-21 02:12:03 +02:00
parent 9be33f357d
commit 6de95ddaa1
14 changed files with 30 additions and 398 deletions
@@ -4,6 +4,26 @@ namespace VoiceCat.Tests;
public class PublishServerScriptTests
{
[Theory]
[InlineData("clients/windows/publish-client.ps1")]
[InlineData("scripts/publish-server.ps1")]
public async Task PublishUsesRegeneratedIntermediateRuntimeLock(string relativePath)
{
string script = await File.ReadAllTextAsync(Path.Combine(FindRoot(), relativePath.Replace('/', Path.DirectorySeparatorChar)));
Assert.Contains("NuGetLockFilePath=obj/packages.publish.", script);
Assert.Contains("RestoreLockedMode=false", script);
Assert.DoesNotContain("NuGetLockFilePath=packages.publish.", script);
}
[Fact]
public async Task LicenseAuditIgnoresGeneratedBuildLocks()
{
string script = await File.ReadAllTextAsync(Path.Combine(FindRoot(), "scripts", "check-licenses.ps1"));
Assert.Contains("(?:bin|obj)", script);
}
[Fact]
public async Task DefaultPublishTargetsWindowsAndLinuxWhileRuntimeCanSelectOne()
{