Skip to content

Commit

Permalink
check json files with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
quarckster committed Sep 9, 2024
1 parent 5399f6d commit ebfbc5a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Lint

on:
pull_request:
paths:
- "secjson/**/**"

jobs:
build:
name: JSON lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Check JSON files
run: |
for f in $(ls secjson); do
jq type 1>/dev/null < "$f"
if [ $? -gt 0 ]; then
echo "Error in file: $f"
fi
done

0 comments on commit ebfbc5a

Please sign in to comment.