Skip to content

Commit

Permalink
added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Apr 9, 2024
1 parent 02ef002 commit 37fdce1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Testing
on: [push, pull_request]
jobs:
checkformat:
runs-on: ubuntu-latest
steps:
- name: Checking json format
run: |
sudo apt install jq
settings_files=$(find -name "*.json")
has_error=0
for file in $settings_files; do
echo "CHECKING '$file'"
jq -c . $file >/dev/null 2>&1
if [[ $? != "0" ]]; then
echo " > FAILED"
has_error=1
else
echo " > SUCCESS"
fi
done
exit $has_error

0 comments on commit 37fdce1

Please sign in to comment.