WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (24)
20public void Dispose() => _workspace.Dispose();
246var changelogPath = Path.Combine(_workspace.Path, "extension", "CHANGELOG.md");
253=> await RunGateScriptAsync(_workspace.Path, environment);
291await InitializeGitRepositoryAsync(_workspace.Path);
293await WritePackageJsonAsync(_workspace.Path, "1.98.0");
294await WriteChangelogAsync(_workspace.Path, """
300await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "baseline.txt"), "baseline");
301await CommitAllAsync(_workspace.Path, "Create baseline changelog");
305_workspace.Path,
317await CommitAllAsync(_workspace.Path, "Finalize prior release changelog");
319await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "feature.txt"), "feature-one");
320await CommitAllAsync(_workspace.Path, "Add extension feature");
323await RunGitAsync(_workspace.Path, "checkout", "-b", "extension-release/v1.99.0");
325await WritePackageJsonAsync(_workspace.Path, "1.99.0");
326await WriteChangelogAsync(_workspace.Path, $$"""
340await CommitAllAsync(_workspace.Path, "Prepare release branch changelog");
342await RunGitAsync(_workspace.Path, "checkout", "main");
346await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("extension", "src", "late-main.txt"), "late extension change");
350await WriteWorkspaceFileAsync(_workspace.Path, Path.Combine("docs", "late-main.md"), "non-extension main change");
353await CommitAllAsync(_workspace.Path, "Advance main");
354var baseSha = await GetHeadShaAsync(_workspace.Path);
356await RunGitAsync(_workspace.Path, "checkout", "extension-release/v1.99.0");
359_workspace.Path,
409=> await GetHeadShaAsync(_workspace.Path);