Skip to content

Commit 3dff527

Browse files
committed
Disable ajv-cli strict mode when validating CI workflows
The JSON schema for GitHub Actions workflow files from the JSON Schema Store is not passing metaschema validation with the new release of ajv-cli. It seems the tool now defaults to a "strict" mode and that schema (note: it's an external resource, not one of arduino-lint's schemas) is not compliant.
1 parent 592badc commit 3dff527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ tasks:
186186
desc: Validate GitHub Actions workflows against JSON schema
187187
cmds:
188188
- wget --output-document={{ .WORKFLOW_SCHEMA_PATH }} https://json.schemastore.org/github-workflow
189-
- npx ajv-cli validate -s {{ .WORKFLOW_SCHEMA_PATH }} -d "./.github/workflows/*.{yml,yaml}"
189+
- npx ajv-cli validate --strict=false -s {{ .WORKFLOW_SCHEMA_PATH }} -d "./.github/workflows/*.{yml,yaml}"
190190

191191
config:check-formatting:
192192
desc: Check formatting of configuration files

0 commit comments

Comments
 (0)