diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..49e96f2 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,25 @@ +name: JSON Validation + +on: + pull_request: + branches: + - main + paths: + - '**.json' + +jobs: + validate-json: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Validate JSON + run: | + for file in $(find . -name "*.json"); do + if ! jq empty "$file" 2>/dev/null; then + echo "❌ Invalid JSON in $file" + exit 1 + fi + done + echo "✅ All JSON files are valid" diff --git a/kite_feeds.json b/kite_feeds.json index 32633df..a963e87 100644 --- a/kite_feeds.json +++ b/kite_feeds.json @@ -749,4 +749,5 @@ "https://www.willistonobserver.com/search/?f=rss&t=article&c=news/williston" ] } + }