mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 05:19:53 +00:00
Changes pull_request trigger to only include paths: ['**/*.json'], so JSON validation only runs on PRs whose diffs touch JSON files. Keeps the push trigger for all updates to main to account for direct pushes that bypass PR. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6656-ci-only-run-json-check-on-PRs-that-change-json-files-2a86d73d365081bc8743faee941022f4) by [Unito](https://www.unito.io)
19 lines
384 B
YAML
19 lines
384 B
YAML
name: "CI: JSON Validation"
|
|
description: "Validates JSON syntax in all tracked .json files (excluding tsconfig*.json) using jq"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- '**/*.json'
|
|
|
|
jobs:
|
|
json-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Validate JSON syntax
|
|
run: ./scripts/cicd/check-json.sh
|