Skip to content

Commit f6eeb5e

Browse files
committed
test: validate generic workflow template contract\n\nSigned-off-by: Vitor Mattos <vitor@php.rio>
1 parent 69839dd commit f6eeb5e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tests/test_first_merged_pr_comment_action.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,17 @@ def test_action_contract_has_no_product_specific_inputs(self) -> None:
188188
self.assertNotIn("community", action.lower())
189189
self.assertNotIn("good first issue", action.lower())
190190

191+
def test_workflow_template_only_exposes_message_configuration(self) -> None:
192+
workflow = (
193+
ROOT / "workflow-templates" / "first-merged-pr-comment.yml"
194+
).read_text(encoding="utf-8")
195+
self.assertIn("vars.FIRST_MERGED_PR_MESSAGE", workflow)
196+
self.assertIn("message-template:", workflow)
197+
self.assertNotIn("survey", workflow.lower())
198+
self.assertNotIn("community", workflow.lower())
199+
self.assertNotIn("good first issue", workflow.lower())
200+
self.assertNotIn("checkout", workflow.lower())
201+
191202

192203
if __name__ == "__main__":
193204
unittest.main()

0 commit comments

Comments
 (0)