Merge pull request #2214 from Niels277/main #950
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: Lint JSON Files | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
branches: | |
- main | |
paths: | |
- '**.json' | |
jobs: | |
validate-config: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install jsonlint | |
run: npm install -g @prantlf/jsonlint | |
- name: Lint JSON files | |
run: | | |
jsonlint ./ -q |