diff --git a/.github/workflows/acceptance-test.yml b/.github/workflows/acceptance-test.yml index 9eafb58..b02e9bb 100644 --- a/.github/workflows/acceptance-test.yml +++ b/.github/workflows/acceptance-test.yml @@ -57,3 +57,12 @@ jobs: lowercase_alphanumeric=^[a-z0-9]*$ files: | __tests__/fixtures/json/custom_ajv_regexp_format/valid.json + + - name: acceptance test - flat yaml + uses: ./ + id: json-yaml-validate-flat-yaml-test + with: + comment: "true" + yaml_schema: ./__tests__/fixtures/schemas/flat.yaml + files: | + __tests__/acceptance/flat_yaml/flat.yaml diff --git a/__tests__/acceptance/flat_yaml/flat.yaml b/__tests__/acceptance/flat_yaml/flat.yaml new file mode 100644 index 0000000..797b2c1 --- /dev/null +++ b/__tests__/acceptance/flat_yaml/flat.yaml @@ -0,0 +1,3 @@ +name: Test +author: Me +category: YAML diff --git a/__tests__/fixtures/schemas/flat.yaml b/__tests__/fixtures/schemas/flat.yaml new file mode 100644 index 0000000..4286d7f --- /dev/null +++ b/__tests__/fixtures/schemas/flat.yaml @@ -0,0 +1,12 @@ +name: + type: string + description: The name + required: true +author: + type: string + description: The author + required: true +category: + type: string + description: The category + required: true