json-syntax-check
ActionsTags
(2)Simple JSON syntax checker
Required file pattern to check syntax. Default is '\\.json$'
.
Optional base directory in which to look for files matching pattern
.
If BASE
is not set, json-syntax-check will look in GITHUB_WORKSPACE
.
File names whose syntax check failed in JSON list format.
Your .github/workflows/jsoncheck.yml
may look like:
name: JSON check
on:
push:
paths:
- '**.json'
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: json-syntax-check
uses: limitusus/json-syntax-check@v2
with:
pattern: "\\.json$"
json-syntax-check is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.