Skip to content

added ci

added ci #1

Workflow file for this run

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