Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML + REGEX #80

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,12 @@ jobs:
yaml_schema: ./__tests__/fixtures/schemas/flat.yaml
files: |
__tests__/acceptance/flat_yaml/flat.yaml

- name: acceptance test - regex yaml
uses: ./
id: json-yaml-validate-regex-yaml-test
with:
comment: "true"
yaml_schema: ./__tests__/fixtures/schemas/regex.yaml
files: |
__tests__/acceptance/regex/regex.yaml
5 changes: 5 additions & 0 deletions __tests__/acceptance/regex/regex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: my-awesome-app
id: 21F640FA-CFBC-4848-9E60-813154A6F241
tags:
environment: production
owner: engineering
21 changes: 21 additions & 0 deletions __tests__/fixtures/schemas/regex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
type: object
properties:
name:
type: string
id:
type: string
pattern: "^[0-9a-fA-F-]{36}$"
tags:
type: object
properties:
environment:
type: string
required:
- environment
owner:
type: string
required:
- name
- id
- tags
- owner
Loading