From 2b02027eb82e2b47162044777faae9c649120018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kautler?= Date: Tue, 28 Jan 2025 11:42:37 +0100 Subject: [PATCH] feat: add JSON schema test cases (#82) --- .../resources/bad-typings/empty_inputs.yml | 3 + .../resources/bad-typings/empty_outputs.yml | 3 + ..._boolean_list_item_with_allowed_values.yml | 11 ++ ...nputs_boolean_list_item_with_list_item.yml | 10 + .../inputs_boolean_list_item_with_name.yml | 9 + ...ts_boolean_list_item_with_named_values.yml | 10 + ...nputs_boolean_list_item_with_separator.yml | 9 + .../inputs_boolean_with_allowed_values.yml | 8 + .../inputs_boolean_with_list_item.yml | 7 + .../bad-typings/inputs_boolean_with_name.yml | 6 + .../inputs_boolean_with_named_values.yml | 7 + .../inputs_boolean_with_separator.yml | 6 + ...num_list_item_with_empty_allowed_value.yml | 10 + ...um_list_item_with_empty_allowed_values.yml | 9 + .../inputs_enum_list_item_with_empty_name.yml | 12 ++ .../inputs_enum_list_item_with_list_item.yml | 13 ++ ...nputs_enum_list_item_with_named_values.yml | 13 ++ .../inputs_enum_list_item_with_separator.yml | 12 ++ ..._enum_list_item_without_allowed_values.yml | 8 + .../inputs_enum_with_empty_allowed_value.yml | 7 + .../inputs_enum_with_empty_allowed_values.yml | 6 + .../inputs_enum_with_empty_name.yml | 10 + .../inputs_enum_with_list_item.yml | 11 ++ .../inputs_enum_with_named_values.yml | 11 ++ .../inputs_enum_with_separator.yml | 10 + .../inputs_enum_without_allowed_values.yml | 5 + ...ts_float_list_item_with_allowed_values.yml | 12 ++ .../inputs_float_list_item_with_list_item.yml | 10 + .../inputs_float_list_item_with_name.yml | 9 + ...puts_float_list_item_with_named_values.yml | 10 + .../inputs_float_list_item_with_separator.yml | 9 + .../inputs_float_with_allowed_values.yml | 9 + .../inputs_float_with_list_item.yml | 7 + .../bad-typings/inputs_float_with_name.yml | 6 + .../inputs_float_with_named_values.yml | 7 + .../inputs_float_with_separator.yml | 6 + ..._integer_list_item_with_allowed_values.yml | 11 ++ ...puts_integer_list_item_with_empty_name.yml | 11 ++ ...teger_list_item_with_empty_named_value.yml | 11 ++ ...eger_list_item_with_empty_named_values.yml | 10 + ...nputs_integer_list_item_with_list_item.yml | 10 + .../inputs_integer_list_item_with_name.yml | 9 + ...list_item_with_non_integer_named_value.yml | 11 ++ ...nputs_integer_list_item_with_separator.yml | 9 + .../inputs_integer_with_allowed_values.yml | 12 ++ .../inputs_integer_with_empty_name.yml | 11 ++ .../inputs_integer_with_empty_named_value.yml | 11 ++ ...inputs_integer_with_empty_named_values.yml | 10 + .../inputs_integer_with_list_item.yml | 7 + .../bad-typings/inputs_integer_with_name.yml | 6 + ...s_integer_with_non_integer_named_value.yml | 11 ++ .../inputs_integer_with_separator.yml | 6 + .../inputs_list_item_without_type.yml | 8 + .../bad-typings/inputs_list_list_item.yml | 11 ++ .../inputs_list_with_allowed_values.yml | 12 ++ .../bad-typings/inputs_list_with_name.yml | 9 + .../inputs_list_with_named_values.yml | 10 + .../inputs_list_without_list_item.yml | 6 + .../inputs_list_without_separator.yml | 7 + ...s_string_list_item_with_allowed_values.yml | 12 ++ ...inputs_string_list_item_with_list_item.yml | 10 + .../inputs_string_list_item_with_name.yml | 9 + ...uts_string_list_item_with_named_values.yml | 10 + ...inputs_string_list_item_with_separator.yml | 9 + .../inputs_string_with_allowed_values.yml | 9 + .../inputs_string_with_list_item.yml | 7 + .../bad-typings/inputs_string_with_name.yml | 6 + .../inputs_string_with_named_values.yml | 7 + .../inputs_string_with_separator.yml | 6 + .../bad-typings/inputs_without_type.yml | 8 + ..._boolean_list_item_with_allowed_values.yml | 11 ++ ...tputs_boolean_list_item_with_list_item.yml | 10 + .../outputs_boolean_list_item_with_name.yml | 9 + ...ts_boolean_list_item_with_named_values.yml | 10 + ...tputs_boolean_list_item_with_separator.yml | 9 + .../outputs_boolean_with_allowed_values.yml | 8 + .../outputs_boolean_with_list_item.yml | 7 + .../bad-typings/outputs_boolean_with_name.yml | 6 + .../outputs_boolean_with_named_values.yml | 7 + .../outputs_boolean_with_separator.yml | 6 + ...num_list_item_with_empty_allowed_value.yml | 10 + ...um_list_item_with_empty_allowed_values.yml | 9 + ...outputs_enum_list_item_with_empty_name.yml | 12 ++ .../outputs_enum_list_item_with_list_item.yml | 13 ++ ...tputs_enum_list_item_with_named_values.yml | 13 ++ .../outputs_enum_list_item_with_separator.yml | 12 ++ ..._enum_list_item_without_allowed_values.yml | 8 + .../outputs_enum_with_empty_allowed_value.yml | 7 + ...outputs_enum_with_empty_allowed_values.yml | 6 + .../outputs_enum_with_empty_name.yml | 10 + .../outputs_enum_with_list_item.yml | 11 ++ .../outputs_enum_with_named_values.yml | 11 ++ .../outputs_enum_with_separator.yml | 10 + .../outputs_enum_without_allowed_values.yml | 5 + ...ts_float_list_item_with_allowed_values.yml | 12 ++ ...outputs_float_list_item_with_list_item.yml | 10 + .../outputs_float_list_item_with_name.yml | 9 + ...puts_float_list_item_with_named_values.yml | 10 + ...outputs_float_list_item_with_separator.yml | 9 + .../outputs_float_with_allowed_values.yml | 9 + .../outputs_float_with_list_item.yml | 7 + .../bad-typings/outputs_float_with_name.yml | 6 + .../outputs_float_with_named_values.yml | 7 + .../outputs_float_with_separator.yml | 6 + ..._integer_list_item_with_allowed_values.yml | 11 ++ ...puts_integer_list_item_with_empty_name.yml | 11 ++ ...teger_list_item_with_empty_named_value.yml | 11 ++ ...eger_list_item_with_empty_named_values.yml | 9 + ...tputs_integer_list_item_with_list_item.yml | 10 + .../outputs_integer_list_item_with_name.yml | 9 + ...list_item_with_non_integer_named_value.yml | 11 ++ ...tputs_integer_list_item_with_separator.yml | 9 + .../outputs_integer_with_allowed_values.yml | 12 ++ .../outputs_integer_with_empty_name.yml | 11 ++ ...outputs_integer_with_empty_named_value.yml | 11 ++ ...utputs_integer_with_empty_named_values.yml | 9 + .../outputs_integer_with_list_item.yml | 7 + .../bad-typings/outputs_integer_with_name.yml | 6 + ...s_integer_with_non_integer_named_value.yml | 11 ++ .../outputs_integer_with_separator.yml | 6 + .../outputs_list_item_without_type.yml | 8 + .../bad-typings/outputs_list_list_item.yml | 11 ++ .../outputs_list_with_allowed_values.yml | 12 ++ .../bad-typings/outputs_list_with_name.yml | 9 + .../outputs_list_with_named_values.yml | 10 + .../outputs_list_without_list_item.yml | 6 + .../outputs_list_without_separator.yml | 7 + ...s_string_list_item_with_allowed_values.yml | 12 ++ ...utputs_string_list_item_with_list_item.yml | 10 + .../outputs_string_list_item_with_name.yml | 9 + ...uts_string_list_item_with_named_values.yml | 10 + ...utputs_string_list_item_with_separator.yml | 9 + .../outputs_string_with_allowed_values.yml | 9 + .../outputs_string_with_list_item.yml | 7 + .../bad-typings/outputs_string_with_name.yml | 6 + .../outputs_string_with_named_values.yml | 7 + .../outputs_string_with_separator.yml | 6 + .../bad-typings/outputs_without_type.yml | 8 + .../resources/good-typings/comment_only.yml | 2 + src/test/resources/good-typings/empty.yml | 0 .../resources/good-typings/good_cases.yml | 187 ++++++++++++++++++ 141 files changed, 1427 insertions(+) create mode 100644 src/test/resources/bad-typings/empty_inputs.yml create mode 100644 src/test/resources/bad-typings/empty_outputs.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_boolean_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_value.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_list_item_without_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_empty_allowed_value.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_empty_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_enum_without_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_float_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_float_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_float_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_float_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_float_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_float_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_float_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_float_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_float_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_float_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_value.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_non_integer_named_value.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_empty_named_value.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_empty_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_non_integer_named_value.yml create mode 100644 src/test/resources/bad-typings/inputs_integer_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_list_item_without_type.yml create mode 100644 src/test/resources/bad-typings/inputs_list_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_list_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_list_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_list_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_list_without_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_list_without_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_string_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_string_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_string_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_string_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_string_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_string_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/inputs_string_with_list_item.yml create mode 100644 src/test/resources/bad-typings/inputs_string_with_name.yml create mode 100644 src/test/resources/bad-typings/inputs_string_with_named_values.yml create mode 100644 src/test/resources/bad-typings/inputs_string_with_separator.yml create mode 100644 src/test/resources/bad-typings/inputs_without_type.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_boolean_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_value.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_list_item_without_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_empty_allowed_value.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_empty_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_enum_without_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_float_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_float_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_float_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_float_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_float_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_float_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_float_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_float_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_float_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_float_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_value.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_non_integer_named_value.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_empty_name.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_empty_named_value.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_empty_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_non_integer_named_value.yml create mode 100644 src/test/resources/bad-typings/outputs_integer_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_list_item_without_type.yml create mode 100644 src/test/resources/bad-typings/outputs_list_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_list_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_list_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_list_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_list_without_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_list_without_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_string_list_item_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_string_list_item_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_string_list_item_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_string_list_item_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_string_list_item_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_string_with_allowed_values.yml create mode 100644 src/test/resources/bad-typings/outputs_string_with_list_item.yml create mode 100644 src/test/resources/bad-typings/outputs_string_with_name.yml create mode 100644 src/test/resources/bad-typings/outputs_string_with_named_values.yml create mode 100644 src/test/resources/bad-typings/outputs_string_with_separator.yml create mode 100644 src/test/resources/bad-typings/outputs_without_type.yml create mode 100644 src/test/resources/good-typings/comment_only.yml create mode 100644 src/test/resources/good-typings/empty.yml create mode 100644 src/test/resources/good-typings/good_cases.yml diff --git a/src/test/resources/bad-typings/empty_inputs.yml b/src/test/resources/bad-typings/empty_inputs.yml new file mode 100644 index 00000000..841f9bca --- /dev/null +++ b/src/test/resources/bad-typings/empty_inputs.yml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: diff --git a/src/test/resources/bad-typings/empty_outputs.yml b/src/test/resources/bad-typings/empty_outputs.yml new file mode 100644 index 00000000..ed0e08b6 --- /dev/null +++ b/src/test/resources/bad-typings/empty_outputs.yml @@ -0,0 +1,3 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: diff --git a/src/test/resources/bad-typings/inputs_boolean_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_boolean_list_item_with_allowed_values.yml new file mode 100644 index 00000000..99e097dc --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_list_item_with_allowed_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/inputs_boolean_list_item_with_list_item.yml b/src/test/resources/bad-typings/inputs_boolean_list_item_with_list_item.yml new file mode 100644 index 00000000..4806236f --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + list-item: + type: integer diff --git a/src/test/resources/bad-typings/inputs_boolean_list_item_with_name.yml b/src/test/resources/bad-typings/inputs_boolean_list_item_with_name.yml new file mode 100644 index 00000000..668a9876 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_boolean_list_item_with_named_values.yml b/src/test/resources/bad-typings/inputs_boolean_list_item_with_named_values.yml new file mode 100644 index 00000000..071af362 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_boolean_list_item_with_separator.yml b/src/test/resources/bad-typings/inputs_boolean_list_item_with_separator.yml new file mode 100644 index 00000000..2dfcbc4a --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_boolean_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_boolean_with_allowed_values.yml new file mode 100644 index 00000000..7ebb1e8f --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_with_allowed_values.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + verbose: + type: boolean + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/inputs_boolean_with_list_item.yml b/src/test/resources/bad-typings/inputs_boolean_with_list_item.yml new file mode 100644 index 00000000..8c655dad --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + verbose: + type: boolean + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/inputs_boolean_with_name.yml b/src/test/resources/bad-typings/inputs_boolean_with_name.yml new file mode 100644 index 00000000..2d3593f3 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + verbose: + type: boolean + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_boolean_with_named_values.yml b/src/test/resources/bad-typings/inputs_boolean_with_named_values.yml new file mode 100644 index 00000000..49bb8300 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + verbose: + type: boolean + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_boolean_with_separator.yml b/src/test/resources/bad-typings/inputs_boolean_with_separator.yml new file mode 100644 index 00000000..6da5acef --- /dev/null +++ b/src/test/resources/bad-typings/inputs_boolean_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + verbose: + type: boolean + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_value.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_value.yml new file mode 100644 index 00000000..1f36dd56 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_value.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - '' diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_values.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_values.yml new file mode 100644 index 00000000..df9da4ab --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: [] diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_name.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_name.yml new file mode 100644 index 00000000..2af724ab --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_empty_name.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + name: '' + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_list_item.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_list_item.yml new file mode 100644 index 00000000..5bef1e66 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_list_item.yml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + list-item: + type: integer diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_named_values.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_named_values.yml new file mode 100644 index 00000000..10d410db --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_named_values.yml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_with_separator.yml b/src/test/resources/bad-typings/inputs_enum_list_item_with_separator.yml new file mode 100644 index 00000000..f640d229 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_with_separator.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_enum_list_item_without_allowed_values.yml b/src/test/resources/bad-typings/inputs_enum_list_item_without_allowed_values.yml new file mode 100644 index 00000000..7261a481 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_list_item_without_allowed_values.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum diff --git a/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_value.yml b/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_value.yml new file mode 100644 index 00000000..b5edae94 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_value.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + allowed-values: + - '' diff --git a/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_values.yml b/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_values.yml new file mode 100644 index 00000000..bbf45ba2 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_empty_allowed_values.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + allowed-values: [] diff --git a/src/test/resources/bad-typings/inputs_enum_with_empty_name.yml b/src/test/resources/bad-typings/inputs_enum_with_empty_name.yml new file mode 100644 index 00000000..70bebbd9 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_empty_name.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + name: '' + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_enum_with_list_item.yml b/src/test/resources/bad-typings/inputs_enum_with_list_item.yml new file mode 100644 index 00000000..807a71f9 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_list_item.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/inputs_enum_with_named_values.yml b/src/test/resources/bad-typings/inputs_enum_with_named_values.yml new file mode 100644 index 00000000..d96f4daa --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_named_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_enum_with_separator.yml b/src/test/resources/bad-typings/inputs_enum_with_separator.yml new file mode 100644 index 00000000..00ea2116 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_with_separator.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_enum_without_allowed_values.yml b/src/test/resources/bad-typings/inputs_enum_without_allowed_values.yml new file mode 100644 index 00000000..91769388 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_enum_without_allowed_values.yml @@ -0,0 +1,5 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + type: enum diff --git a/src/test/resources/bad-typings/inputs_float_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_float_list_item_with_allowed_values.yml new file mode 100644 index 00000000..8954e321 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_list_item_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_float_list_item_with_list_item.yml b/src/test/resources/bad-typings/inputs_float_list_item_with_list_item.yml new file mode 100644 index 00000000..756b97fa --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/inputs_float_list_item_with_name.yml b/src/test/resources/bad-typings/inputs_float_list_item_with_name.yml new file mode 100644 index 00000000..7fe3b7c1 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_float_list_item_with_named_values.yml b/src/test/resources/bad-typings/inputs_float_list_item_with_named_values.yml new file mode 100644 index 00000000..8b4f165a --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_float_list_item_with_separator.yml b/src/test/resources/bad-typings/inputs_float_list_item_with_separator.yml new file mode 100644 index 00000000..75d1863b --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_float_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_float_with_allowed_values.yml new file mode 100644 index 00000000..54f18681 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_with_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + some-float: + type: float + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_float_with_list_item.yml b/src/test/resources/bad-typings/inputs_float_with_list_item.yml new file mode 100644 index 00000000..b507a19f --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + some-float: + type: float + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/inputs_float_with_name.yml b/src/test/resources/bad-typings/inputs_float_with_name.yml new file mode 100644 index 00000000..a7930481 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + some-float: + type: float + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_float_with_named_values.yml b/src/test/resources/bad-typings/inputs_float_with_named_values.yml new file mode 100644 index 00000000..dad357f7 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + some-float: + type: float + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_float_with_separator.yml b/src/test/resources/bad-typings/inputs_float_with_separator.yml new file mode 100644 index 00000000..e85d0fa9 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_float_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + some-float: + type: float + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_allowed_values.yml new file mode 100644 index 00000000..f7651505 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_allowed_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_name.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_name.yml new file mode 100644 index 00000000..8667fd97 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_name.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: '' + named-values: + foo: 0 diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_value.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_value.yml new file mode 100644 index 00000000..b0a187c1 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + '': 0 diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_values.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_values.yml new file mode 100644 index 00000000..4f25cedd --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_empty_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: {} diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_list_item.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_list_item.yml new file mode 100644 index 00000000..9370100c --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + list-item: + type: string diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_name.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_name.yml new file mode 100644 index 00000000..48c7553b --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_non_integer_named_value.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_non_integer_named_value.yml new file mode 100644 index 00000000..87f7bb10 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_non_integer_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + foo: '0' diff --git a/src/test/resources/bad-typings/inputs_integer_list_item_with_separator.yml b/src/test/resources/bad-typings/inputs_integer_list_item_with_separator.yml new file mode 100644 index 00000000..4ca33cc3 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_integer_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_integer_with_allowed_values.yml new file mode 100644 index 00000000..2691c2a3 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_integer_with_empty_name.yml b/src/test/resources/bad-typings/inputs_integer_with_empty_name.yml new file mode 100644 index 00000000..8667fd97 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_empty_name.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: '' + named-values: + foo: 0 diff --git a/src/test/resources/bad-typings/inputs_integer_with_empty_named_value.yml b/src/test/resources/bad-typings/inputs_integer_with_empty_named_value.yml new file mode 100644 index 00000000..b0a187c1 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_empty_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + '': 0 diff --git a/src/test/resources/bad-typings/inputs_integer_with_empty_named_values.yml b/src/test/resources/bad-typings/inputs_integer_with_empty_named_values.yml new file mode 100644 index 00000000..4f25cedd --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_empty_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: {} diff --git a/src/test/resources/bad-typings/inputs_integer_with_list_item.yml b/src/test/resources/bad-typings/inputs_integer_with_list_item.yml new file mode 100644 index 00000000..e497a4db --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + retries: + type: integer + list-item: + type: string diff --git a/src/test/resources/bad-typings/inputs_integer_with_name.yml b/src/test/resources/bad-typings/inputs_integer_with_name.yml new file mode 100644 index 00000000..68574e2a --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + retries: + type: integer + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_integer_with_non_integer_named_value.yml b/src/test/resources/bad-typings/inputs_integer_with_non_integer_named_value.yml new file mode 100644 index 00000000..87f7bb10 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_non_integer_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + foo: '0' diff --git a/src/test/resources/bad-typings/inputs_integer_with_separator.yml b/src/test/resources/bad-typings/inputs_integer_with_separator.yml new file mode 100644 index 00000000..9fa40b5f --- /dev/null +++ b/src/test/resources/bad-typings/inputs_integer_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + retries: + type: integer + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_list_item_without_type.yml b/src/test/resources/bad-typings/inputs_list_item_without_type.yml new file mode 100644 index 00000000..05076b8f --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_item_without_type.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_list_list_item.yml b/src/test/resources/bad-typings/inputs_list_list_item.yml new file mode 100644 index 00000000..128b7568 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_list_item.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: list + separator: ',' + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/inputs_list_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_list_with_allowed_values.yml new file mode 100644 index 00000000..8f045109 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_list_with_name.yml b/src/test/resources/bad-typings/inputs_list_with_name.yml new file mode 100644 index 00000000..732532de --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_list_with_named_values.yml b/src/test/resources/bad-typings/inputs_list_with_named_values.yml new file mode 100644 index 00000000..83416e39 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_list_without_list_item.yml b/src/test/resources/bad-typings/inputs_list_without_list_item.yml new file mode 100644 index 00000000..f7e2a8d2 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_without_list_item.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_list_without_separator.yml b/src/test/resources/bad-typings/inputs_list_without_separator.yml new file mode 100644 index 00000000..ad173494 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_list_without_separator.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + list-item: + type: string diff --git a/src/test/resources/bad-typings/inputs_string_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_string_list_item_with_allowed_values.yml new file mode 100644 index 00000000..acfabf4e --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_list_item_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_string_list_item_with_list_item.yml b/src/test/resources/bad-typings/inputs_string_list_item_with_list_item.yml new file mode 100644 index 00000000..8bcb5d2e --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + list-item: + type: string diff --git a/src/test/resources/bad-typings/inputs_string_list_item_with_name.yml b/src/test/resources/bad-typings/inputs_string_list_item_with_name.yml new file mode 100644 index 00000000..a128233a --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_string_list_item_with_named_values.yml b/src/test/resources/bad-typings/inputs_string_list_item_with_named_values.yml new file mode 100644 index 00000000..b3377dbf --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_string_list_item_with_separator.yml b/src/test/resources/bad-typings/inputs_string_list_item_with_separator.yml new file mode 100644 index 00000000..73d92261 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + input-files: + type: list + separator: ',' + list-item: + type: string + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_string_with_allowed_values.yml b/src/test/resources/bad-typings/inputs_string_with_allowed_values.yml new file mode 100644 index 00000000..9956a13c --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_with_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + name: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/inputs_string_with_list_item.yml b/src/test/resources/bad-typings/inputs_string_with_list_item.yml new file mode 100644 index 00000000..cb039399 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + name: + type: string + list-item: + type: string diff --git a/src/test/resources/bad-typings/inputs_string_with_name.yml b/src/test/resources/bad-typings/inputs_string_with_name.yml new file mode 100644 index 00000000..5c101f3c --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + name: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/inputs_string_with_named_values.yml b/src/test/resources/bad-typings/inputs_string_with_named_values.yml new file mode 100644 index 00000000..6737cecf --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + name: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/inputs_string_with_separator.yml b/src/test/resources/bad-typings/inputs_string_with_separator.yml new file mode 100644 index 00000000..32ea8ea0 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_string_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + name: + type: string + separator: ',' diff --git a/src/test/resources/bad-typings/inputs_without_type.yml b/src/test/resources/bad-typings/inputs_without_type.yml new file mode 100644 index 00000000..f87b8fb3 --- /dev/null +++ b/src/test/resources/bad-typings/inputs_without_type.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + permissions: + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_boolean_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_boolean_list_item_with_allowed_values.yml new file mode 100644 index 00000000..34ba7f66 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_list_item_with_allowed_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/outputs_boolean_list_item_with_list_item.yml b/src/test/resources/bad-typings/outputs_boolean_list_item_with_list_item.yml new file mode 100644 index 00000000..067086c1 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + list-item: + type: integer diff --git a/src/test/resources/bad-typings/outputs_boolean_list_item_with_name.yml b/src/test/resources/bad-typings/outputs_boolean_list_item_with_name.yml new file mode 100644 index 00000000..b9071cba --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_boolean_list_item_with_named_values.yml b/src/test/resources/bad-typings/outputs_boolean_list_item_with_named_values.yml new file mode 100644 index 00000000..296473e0 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_boolean_list_item_with_separator.yml b/src/test/resources/bad-typings/outputs_boolean_list_item_with_separator.yml new file mode 100644 index 00000000..5b6701d0 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-boolean: + type: list + separator: ',' + list-item: + type: boolean + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_boolean_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_boolean_with_allowed_values.yml new file mode 100644 index 00000000..a23cd9ea --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_with_allowed_values.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + verbose: + type: boolean + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/outputs_boolean_with_list_item.yml b/src/test/resources/bad-typings/outputs_boolean_with_list_item.yml new file mode 100644 index 00000000..22f141c8 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + verbose: + type: boolean + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/outputs_boolean_with_name.yml b/src/test/resources/bad-typings/outputs_boolean_with_name.yml new file mode 100644 index 00000000..1415a798 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + verbose: + type: boolean + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_boolean_with_named_values.yml b/src/test/resources/bad-typings/outputs_boolean_with_named_values.yml new file mode 100644 index 00000000..cb288e0a --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + verbose: + type: boolean + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_boolean_with_separator.yml b/src/test/resources/bad-typings/outputs_boolean_with_separator.yml new file mode 100644 index 00000000..2d6e8e29 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_boolean_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + verbose: + type: boolean + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_value.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_value.yml new file mode 100644 index 00000000..4c1c9927 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_value.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - '' diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_values.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_values.yml new file mode 100644 index 00000000..8ff68d37 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: [] diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_name.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_name.yml new file mode 100644 index 00000000..0373d62b --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_empty_name.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + name: '' + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_list_item.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_list_item.yml new file mode 100644 index 00000000..284441d8 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_list_item.yml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + list-item: + type: integer diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_named_values.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_named_values.yml new file mode 100644 index 00000000..7f130ba9 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_named_values.yml @@ -0,0 +1,13 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_with_separator.yml b/src/test/resources/bad-typings/outputs_enum_list_item_with_separator.yml new file mode 100644 index 00000000..a3f5b29f --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_with_separator.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum + allowed-values: + - read + - write + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_enum_list_item_without_allowed_values.yml b/src/test/resources/bad-typings/outputs_enum_list_item_without_allowed_values.yml new file mode 100644 index 00000000..21956d30 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_list_item_without_allowed_values.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + granted-scopes: + type: list + separator: ',' + list-item: + type: enum diff --git a/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_value.yml b/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_value.yml new file mode 100644 index 00000000..833dda66 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_value.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + allowed-values: + - '' diff --git a/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_values.yml b/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_values.yml new file mode 100644 index 00000000..c5402de2 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_empty_allowed_values.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + allowed-values: [] diff --git a/src/test/resources/bad-typings/outputs_enum_with_empty_name.yml b/src/test/resources/bad-typings/outputs_enum_with_empty_name.yml new file mode 100644 index 00000000..30d40503 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_empty_name.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + name: '' + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_enum_with_list_item.yml b/src/test/resources/bad-typings/outputs_enum_with_list_item.yml new file mode 100644 index 00000000..64c5b88a --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_list_item.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/outputs_enum_with_named_values.yml b/src/test/resources/bad-typings/outputs_enum_with_named_values.yml new file mode 100644 index 00000000..b8b95415 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_named_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_enum_with_separator.yml b/src/test/resources/bad-typings/outputs_enum_with_separator.yml new file mode 100644 index 00000000..c76a9c9b --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_with_separator.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum + allowed-values: + - user + - admin + - guest + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_enum_without_allowed_values.yml b/src/test/resources/bad-typings/outputs_enum_without_allowed_values.yml new file mode 100644 index 00000000..e046db47 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_enum_without_allowed_values.yml @@ -0,0 +1,5 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + type: enum diff --git a/src/test/resources/bad-typings/outputs_float_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_float_list_item_with_allowed_values.yml new file mode 100644 index 00000000..4b0638f6 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_list_item_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_float_list_item_with_list_item.yml b/src/test/resources/bad-typings/outputs_float_list_item_with_list_item.yml new file mode 100644 index 00000000..d7acf9e7 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/outputs_float_list_item_with_name.yml b/src/test/resources/bad-typings/outputs_float_list_item_with_name.yml new file mode 100644 index 00000000..13792c9c --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_float_list_item_with_named_values.yml b/src/test/resources/bad-typings/outputs_float_list_item_with_named_values.yml new file mode 100644 index 00000000..1b10ab68 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_float_list_item_with_separator.yml b/src/test/resources/bad-typings/outputs_float_list_item_with_separator.yml new file mode 100644 index 00000000..3846f581 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-float: + type: list + separator: ',' + list-item: + type: float + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_float_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_float_with_allowed_values.yml new file mode 100644 index 00000000..912fa6ac --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_with_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + some-float: + type: float + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_float_with_list_item.yml b/src/test/resources/bad-typings/outputs_float_with_list_item.yml new file mode 100644 index 00000000..cb57cd9d --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + some-float: + type: float + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/outputs_float_with_name.yml b/src/test/resources/bad-typings/outputs_float_with_name.yml new file mode 100644 index 00000000..4ebfb694 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + some-float: + type: float + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_float_with_named_values.yml b/src/test/resources/bad-typings/outputs_float_with_named_values.yml new file mode 100644 index 00000000..53dcf13e --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + some-float: + type: float + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_float_with_separator.yml b/src/test/resources/bad-typings/outputs_float_with_separator.yml new file mode 100644 index 00000000..84c35702 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_float_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + some-float: + type: float + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_allowed_values.yml new file mode 100644 index 00000000..d59af676 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_allowed_values.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + allowed-values: + - read + - write diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_name.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_name.yml new file mode 100644 index 00000000..dfde966c --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_name.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: '' + named-values: + foo: 0 diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_value.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_value.yml new file mode 100644 index 00000000..b62eadbf --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + '': 0 diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_values.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_values.yml new file mode 100644 index 00000000..e4855ddc --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_empty_named_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + named-values: {} diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_list_item.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_list_item.yml new file mode 100644 index 00000000..908e4564 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + list-item: + type: string diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_name.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_name.yml new file mode 100644 index 00000000..47554a01 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_non_integer_named_value.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_non_integer_named_value.yml new file mode 100644 index 00000000..2aace08c --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_non_integer_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + foo: '0' diff --git a/src/test/resources/bad-typings/outputs_integer_list_item_with_separator.yml b/src/test/resources/bad-typings/outputs_integer_list_item_with_separator.yml new file mode 100644 index 00000000..ecb314ef --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_integer_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_integer_with_allowed_values.yml new file mode 100644 index 00000000..a35de8cb --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_integer_with_empty_name.yml b/src/test/resources/bad-typings/outputs_integer_with_empty_name.yml new file mode 100644 index 00000000..dfde966c --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_empty_name.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: '' + named-values: + foo: 0 diff --git a/src/test/resources/bad-typings/outputs_integer_with_empty_named_value.yml b/src/test/resources/bad-typings/outputs_integer_with_empty_named_value.yml new file mode 100644 index 00000000..b62eadbf --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_empty_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + '': 0 diff --git a/src/test/resources/bad-typings/outputs_integer_with_empty_named_values.yml b/src/test/resources/bad-typings/outputs_integer_with_empty_named_values.yml new file mode 100644 index 00000000..e4855ddc --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_empty_named_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + named-values: {} diff --git a/src/test/resources/bad-typings/outputs_integer_with_list_item.yml b/src/test/resources/bad-typings/outputs_integer_with_list_item.yml new file mode 100644 index 00000000..01104eab --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + retries: + type: integer + list-item: + type: string diff --git a/src/test/resources/bad-typings/outputs_integer_with_name.yml b/src/test/resources/bad-typings/outputs_integer_with_name.yml new file mode 100644 index 00000000..770ba91a --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + retries: + type: integer + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_integer_with_non_integer_named_value.yml b/src/test/resources/bad-typings/outputs_integer_with_non_integer_named_value.yml new file mode 100644 index 00000000..2aace08c --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_non_integer_named_value.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + list-of-integer: + type: list + separator: ',' + list-item: + type: integer + name: AllowedValues + named-values: + foo: '0' diff --git a/src/test/resources/bad-typings/outputs_integer_with_separator.yml b/src/test/resources/bad-typings/outputs_integer_with_separator.yml new file mode 100644 index 00000000..1c972373 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_integer_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + retries: + type: integer + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_list_item_without_type.yml b/src/test/resources/bad-typings/outputs_list_item_without_type.yml new file mode 100644 index 00000000..0fc80709 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_item_without_type.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_list_list_item.yml b/src/test/resources/bad-typings/outputs_list_list_item.yml new file mode 100644 index 00000000..fa837bf0 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_list_item.yml @@ -0,0 +1,11 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: list + separator: ',' + list-item: + type: boolean diff --git a/src/test/resources/bad-typings/outputs_list_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_list_with_allowed_values.yml new file mode 100644 index 00000000..4ec0390e --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_list_with_name.yml b/src/test/resources/bad-typings/outputs_list_with_name.yml new file mode 100644 index 00000000..fe10f5ed --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_list_with_named_values.yml b/src/test/resources/bad-typings/outputs_list_with_named_values.yml new file mode 100644 index 00000000..f60e31ff --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_list_without_list_item.yml b/src/test/resources/bad-typings/outputs_list_without_list_item.yml new file mode 100644 index 00000000..56a05f1e --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_without_list_item.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_list_without_separator.yml b/src/test/resources/bad-typings/outputs_list_without_separator.yml new file mode 100644 index 00000000..85bde3d7 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_list_without_separator.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + list-item: + type: string diff --git a/src/test/resources/bad-typings/outputs_string_list_item_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_string_list_item_with_allowed_values.yml new file mode 100644 index 00000000..3150880d --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_list_item_with_allowed_values.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_string_list_item_with_list_item.yml b/src/test/resources/bad-typings/outputs_string_list_item_with_list_item.yml new file mode 100644 index 00000000..8c671ec2 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_list_item_with_list_item.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + list-item: + type: string diff --git a/src/test/resources/bad-typings/outputs_string_list_item_with_name.yml b/src/test/resources/bad-typings/outputs_string_list_item_with_name.yml new file mode 100644 index 00000000..0f35d543 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_list_item_with_name.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_string_list_item_with_named_values.yml b/src/test/resources/bad-typings/outputs_string_list_item_with_named_values.yml new file mode 100644 index 00000000..7a6c0afd --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_list_item_with_named_values.yml @@ -0,0 +1,10 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_string_list_item_with_separator.yml b/src/test/resources/bad-typings/outputs_string_list_item_with_separator.yml new file mode 100644 index 00000000..18d62211 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_list_item_with_separator.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + input-files: + type: list + separator: ',' + list-item: + type: string + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_string_with_allowed_values.yml b/src/test/resources/bad-typings/outputs_string_with_allowed_values.yml new file mode 100644 index 00000000..b7076041 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_with_allowed_values.yml @@ -0,0 +1,9 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + name: + type: string + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/bad-typings/outputs_string_with_list_item.yml b/src/test/resources/bad-typings/outputs_string_with_list_item.yml new file mode 100644 index 00000000..638771bf --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_with_list_item.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + name: + type: string + list-item: + type: string diff --git a/src/test/resources/bad-typings/outputs_string_with_name.yml b/src/test/resources/bad-typings/outputs_string_with_name.yml new file mode 100644 index 00000000..96ba9d2a --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_with_name.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + name: + type: string + name: AllowedValues diff --git a/src/test/resources/bad-typings/outputs_string_with_named_values.yml b/src/test/resources/bad-typings/outputs_string_with_named_values.yml new file mode 100644 index 00000000..bb81a388 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_with_named_values.yml @@ -0,0 +1,7 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + name: + type: string + named-values: + infinite: 0 diff --git a/src/test/resources/bad-typings/outputs_string_with_separator.yml b/src/test/resources/bad-typings/outputs_string_with_separator.yml new file mode 100644 index 00000000..e75a06a3 --- /dev/null +++ b/src/test/resources/bad-typings/outputs_string_with_separator.yml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + name: + type: string + separator: ',' diff --git a/src/test/resources/bad-typings/outputs_without_type.yml b/src/test/resources/bad-typings/outputs_without_type.yml new file mode 100644 index 00000000..aaec69fd --- /dev/null +++ b/src/test/resources/bad-typings/outputs_without_type.yml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +outputs: + permissions: + allowed-values: + - user + - admin + - guest diff --git a/src/test/resources/good-typings/comment_only.yml b/src/test/resources/good-typings/comment_only.yml new file mode 100644 index 00000000..ffe5ddc7 --- /dev/null +++ b/src/test/resources/good-typings/comment_only.yml @@ -0,0 +1,2 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing diff --git a/src/test/resources/good-typings/empty.yml b/src/test/resources/good-typings/empty.yml new file mode 100644 index 00000000..e69de29b diff --git a/src/test/resources/good-typings/good_cases.yml b/src/test/resources/good-typings/good_cases.yml new file mode 100644 index 00000000..3c00927a --- /dev/null +++ b/src/test/resources/good-typings/good_cases.yml @@ -0,0 +1,187 @@ +# yaml-language-server: $schema=../../../main/schema/github-actions-typing.schema.json +# See https://github.com/typesafegithub/github-actions-typing +inputs: + string_input: + type: string + + boolean_input: + type: boolean + + integer_input: + type: integer + + float_input: + type: float + + integer_with_named_values_input: + type: integer + named-values: + named-value: 0 + + integer_with_named_values_and_name_input: + type: integer + name: Foo + named-values: + named-value: 0 + + enum_input: + type: enum + allowed-values: + - foo + + enum_with_name_input: + type: enum + name: Foo + allowed-values: + - foo + + list_of_string_input: + type: list + separator: "," + list-item: + type: string + + list_of_boolean_input: + type: list + separator: "," + list-item: + type: boolean + + list_of_integer_input: + type: list + separator: "," + list-item: + type: integer + + list_of_float_input: + type: list + separator: "," + list-item: + type: float + + list_of_integer_with_named_values_input: + type: list + separator: "," + list-item: + type: integer + named-values: + named-value: 0 + + list_of_integer_with_named_values_and_name_input: + type: list + separator: "," + list-item: + type: integer + name: Foo + named-values: + named-value: 0 + + list_of_enum_input: + type: list + separator: "," + list-item: + type: enum + allowed-values: + - foo + + list_of_enum_with_name_input: + type: list + separator: "," + list-item: + type: enum + name: Foo + allowed-values: + - foo + +outputs: + string_output: + type: string + + boolean_output: + type: boolean + + integer_output: + type: integer + + float_output: + type: float + + integer_with_named_values_output: + type: integer + named-values: + named-value: 0 + + integer_with_named_values_and_name_output: + type: integer + name: Foo + named-values: + named-value: 0 + + enum_output: + type: enum + allowed-values: + - foo + + enum_with_name_output: + type: enum + name: Foo + allowed-values: + - foo + + list_of_string_output: + type: list + separator: "," + list-item: + type: string + + list_of_boolean_output: + type: list + separator: "," + list-item: + type: boolean + + list_of_integer_output: + type: list + separator: "," + list-item: + type: integer + + list_of_float_output: + type: list + separator: "," + list-item: + type: float + + list_of_integer_with_named_values_output: + type: list + separator: "," + list-item: + type: integer + named-values: + named-value: 0 + + list_of_integer_with_named_values_and_name_output: + type: list + separator: "," + list-item: + type: integer + name: Foo + named-values: + named-value: 0 + + list_of_enum_output: + type: list + separator: "," + list-item: + type: enum + allowed-values: + - foo + + list_of_enum_with_name_output: + type: list + separator: "," + list-item: + type: enum + name: Foo + allowed-values: + - foo