Skip to content

Commit 019e6bd

Browse files
authored
test: fix duplicate schema test cases (#267)
Before this change, we had duplicated tests (with the same YAML, just with different file name), see e.g.: * https://github.com/typesafegithub/github-actions-typing/blob/ca1309fb40c902b61865f1768b8d03cd4d3a12e6/src/test/resources/bad-typings/inputs_integer_list_item_with_non_integer_named_value.yml * https://github.com/typesafegithub/github-actions-typing/blob/ca1309fb40c902b61865f1768b8d03cd4d3a12e6/src/test/resources/bad-typings/outputs_integer_list_item_with_non_integer_named_value.yml # Testing ``` find src/test/resources | grep ml | xargs md5 -q | sort | uniq -c | sort -n | grep -v " 1 " ``` returns nothing.
1 parent ca1309f commit 019e6bd

8 files changed

+37
-61
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
inputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: ''
10-
named-values:
11-
foo: 0
4+
retries:
5+
type: integer
6+
name: ''
7+
named-values:
8+
foo: 0
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
inputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: AllowedValues
10-
named-values:
11-
'': 0
4+
retries:
5+
type: integer
6+
name: AllowedValues
7+
named-values:
8+
'': 0
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
inputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: AllowedValues
10-
named-values: {}
4+
retries:
5+
type: integer
6+
name: AllowedValues
7+
named-values: {}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
inputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: AllowedValues
10-
named-values:
11-
foo: '0'
4+
retries:
5+
type: integer
6+
name: AllowedValues
7+
named-values:
8+
foo: '0'
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
outputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: ''
10-
named-values:
11-
foo: 0
4+
retries:
5+
type: integer
6+
name: ''
7+
named-values:
8+
foo: 0
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
outputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: AllowedValues
10-
named-values:
11-
'': 0
4+
retries:
5+
type: integer
6+
name: AllowedValues
7+
named-values:
8+
'': 0
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
outputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
named-values: {}
4+
retries:
5+
type: integer
6+
named-values: {}
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
# yaml-language-server: $schema=../../../../github-actions-typing.schema.json
22
# See https://github.com/typesafegithub/github-actions-typing
33
outputs:
4-
list-of-integer:
5-
type: list
6-
separator: ','
7-
list-item:
8-
type: integer
9-
name: AllowedValues
10-
named-values:
11-
foo: '0'
4+
retries:
5+
type: integer
6+
name: AllowedValues
7+
named-values:
8+
foo: '0'

0 commit comments

Comments
 (0)