Skip to content

Check JSON

Check JSON #399

Workflow file for this run

# Source: https://github.com/per1234/.github/blob/main/workflow-templates/check-json.md
name: Check JSON
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
paths:
- ".github/workflows/check-json.ya?ml"
- "**/.eslintrc*"
- "**.json[c5]?"
pull_request:
paths:
- ".github/workflows/check-json.ya?ml"
- "**/.eslintrc*"
- "**.json[c5]?"
schedule:
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to tools.
- cron: "0 8 * * TUE"
workflow_dispatch:
repository_dispatch:
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install eslint
run: npm install --no-save eslint eslint-plugin-jsonc
- name: Lint
run: npx eslint --config .eslintrc.yml --no-eslintrc --ext .json,.jsonc,.json5 .