From 3dff5270ecbc954789b83c32f6e1beccf542fdc3 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 16 Dec 2020 02:29:30 -0800 Subject: [PATCH] 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. --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index c57bf9be0..32994bca0 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -186,7 +186,7 @@ tasks: desc: Validate GitHub Actions workflows against JSON schema cmds: - wget --output-document={{ .WORKFLOW_SCHEMA_PATH }} https://json.schemastore.org/github-workflow - - npx ajv-cli validate -s {{ .WORKFLOW_SCHEMA_PATH }} -d "./.github/workflows/*.{yml,yaml}" + - npx ajv-cli validate --strict=false -s {{ .WORKFLOW_SCHEMA_PATH }} -d "./.github/workflows/*.{yml,yaml}" config:check-formatting: desc: Check formatting of configuration files