WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (11)
50Assert.Equal("Extension changelog finalized", Scalar(gateJob, "name"));
54var checkoutStep = Assert.Single(steps, step => Scalar(step, "uses")?.Contains("actions/checkout", StringComparison.Ordinal) == true);
56Assert.Equal("${{ github.event.pull_request.head.sha }}", Scalar(checkoutWith, "ref"));
59Scalar(checkoutWith, "fetch-depth"));
60Assert.Equal("false", Scalar(checkoutWith, "persist-credentials"));
64step => Scalar(step, "name") == "Preload trusted base history for release-branch stale range checks");
69step => Scalar(step, "run")?.Contains("bash .github/workflows/check-extension-changelog-finalized.sh", StringComparison.Ordinal) == true);
71Assert.Equal("${{ github.head_ref }}", Scalar(verifyEnv, "PR_HEAD_REF"));
72Assert.Equal("${{ github.base_ref }}", Scalar(verifyEnv, "PR_BASE_REF"));
73Assert.Equal("${{ github.event.pull_request.base.sha }}", Scalar(verifyEnv, "PR_BASE_SHA"));
77step => Scalar(step, "run")?.Contains("bash .github/workflows/check-extension-changelog-finalized.sh", StringComparison.Ordinal) == true);