From 2746f96d369c43e83e74d52b157264bd8c70bc04 Mon Sep 17 00:00:00 2001 From: Imran Siddique Date: Sun, 7 Jun 2026 21:47:33 -0700 Subject: [PATCH] feat: add CI to validate JSON and YAML examples Validates all JSON and YAML files on push/PR. Includes FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for June 16 deadline. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..56c131c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,27 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Validate JSON files + run: | + find . -name "*.json" -not -path "./.git/*" | while read f; do + python3 -m json.tool "$f" > /dev/null && echo "OK: $f" || exit 1 + done + - name: Validate YAML files + run: | + pip install pyyaml -q + find . -name "*.yaml" -o -name "*.yml" | grep -v ".git" | while read f; do + python3 -c "import yaml, sys; yaml.safe_load(open(sys.argv[1]))" "$f" && echo "OK: $f" || exit 1 + done