Merge pull request #2452 from EIGHTFINITE/dependabot/npm_and_yarn/npm… #8440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "jsonlint" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
jsonlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build demjson | |
shell: bash | |
run: | | |
pip install setuptools==57.5.0 | |
pip install git+https://github.com/EIGHTFINITE/demjson.git@master | |
- uses: actions/[email protected] | |
with: | |
path: DownloadItYourself | |
- name: jsonlint | |
shell: bash | |
run: | | |
# Forbid all | |
if [[ $(find . -type f -path ./.git -prune -o -name '*.json' -exec jsonlint -s --forbid any-type-at-start,bom,duplicate-keys,non-portable,non-bmp,zero-byte -e utf8 -- '{}' ';' | grep -v -e ': ok' -e ': has errors' | tee /dev/stderr | head -c1 | wc -c) -ne 0 ]] | |
then exit 1 | |
fi |