Skip to content

Commit 97c58ac

Browse files
committed
Report all errors when taskfile schema validation occurs
The `ajv-cli` JSON schema validator is used to check the data format of the taskfile. The default behavior of `ajv-cli` is to bail out on the first error. I think it is slightly more convenient to get all the errors at once to allow fixing all of them in one go rather than having to repeatedly run the validation before discovering all of them. This behavior is provided by adding the `--all-errors` flag to the `ajv-cli`' commands.
1 parent 3337229 commit 97c58ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/check-taskfiles.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
run: |
4949
# See: https://github.com/ajv-validator/ajv-cli#readme
5050
ajv validate \
51+
--all-errors \
5152
--strict=false \
5253
-s "${{ steps.download-schema.outputs.file-path }}" \
5354
-d "${{ matrix.file }}"

0 commit comments

Comments
 (0)