Skip to content

Commit d93c274

Browse files
committed
add flat yaml test
1 parent 38952da commit d93c274

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/acceptance-test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,11 @@ jobs:
4646
__tests__/**/test1.yml
4747
__tests__/**/test*.json
4848
49-
- name: acceptance test - custom formats
49+
- name: acceptance test - flat yaml
5050
uses: ./
51-
id: json-yaml-validate-custom-formats-test
51+
id: json-yaml-validate-flat-yaml-test
5252
with:
5353
comment: "true"
54-
json_schema: ./__tests__/fixtures/schemas/schema_with_custom_ajv_regexp_format.json
55-
ajv_custom_regexp_formats: |
56-
lowercase_char=^[a-z]*$
57-
lowercase_alphanumeric=^[a-z0-9]*$
54+
yaml_schema: ./__tests__/fixtures/schemas/flat.yaml
5855
files: |
59-
__tests__/fixtures/json/custom_ajv_regexp_format/valid.json
56+
__tests__/acceptance/flat_yaml/flat.yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
name: Test
2+
author: Me
3+
category: YAML

__tests__/fixtures/schemas/flat.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name:
2+
type: string
3+
description: Name of the yaml value
4+
required: true

0 commit comments

Comments
 (0)