Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/test-template/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ inputs:
description: "Test script to execute"
required: true
is_optional:
description: "Failure will cancel all other tests if set to true"
description: "Failure is ignored and other tests continue if set to true"
required: false
default: "false"
is_unit_test:
Expand Down
21 changes: 21 additions & 0 deletions unit_tests/github_actions/test_optional_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
"""Regression test: is_optional description matches behavior."""

import sys


def main():
with open(".github/actions/test-template/action.yml") as f:
content = f.read()

if "Failure will cancel all other tests if set to true" in content:
print("BUG: is_optional description inverts the actual behavior")
sys.exit(1)

if "is_optional:" not in content or "description:" not in content:
print("Could not find is_optional input description")
sys.exit(1)

print("OK")


Loading