Skip to content

Commit 3a6c1d6

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 b1ccd08 commit 3a6c1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

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

224224
config:check-formatting:
225225
desc: Check formatting of configuration files

0 commit comments

Comments
 (0)