Skip to content

Commit

Permalink
updated CI and moved to script
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Apr 9, 2024
1 parent 9302613 commit 377b862
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checking json format
run: |
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
if: always()
run: bash scripts/checkTodo.sh
continue-on-error: true
18 changes: 18 additions & 0 deletions scripts/checkFormat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

SCRIPTPATH=`dirname $(readlink -f $0)`
cd $SCRIPTPATH/..

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 377b862

Please sign in to comment.