Skip to content

Commit

Permalink
update acceptance test and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Dec 29, 2023
1 parent 703ebf8 commit 42f2e19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
id: json-yaml-validate-glob-test
with:
comment: "true"
yaml_as_json: "false"
exclude_file: .github/config/exclude-alt.txt
files: |
__tests__/**/test1.yml
Expand Down
2 changes: 2 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/functions/json-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ export async function jsonValidator(exclude) {
const useDotMatch = core.getBooleanInput('use_dot_match')
let patterns = core.getMultilineInput('files').filter(Boolean)

core.debug(`yaml_as_json: ${yamlAsJson}`)

// construct a list of file paths to validate and use glob if necessary
let files = []
patterns.forEach(pattern => {
Expand Down

0 comments on commit 42f2e19

Please sign in to comment.