Skip to content

Commit

Permalink
Included .C macros check for config
Browse files Browse the repository at this point in the history
  • Loading branch information
jackal1-66 authored Nov 29, 2024
1 parent b7fac4f commit 0205009
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/syntax-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,19 @@ jobs:
done
exit "$error"
- name: Run .C configs check
run: |
error=0
readarray -d '' files < \
<(find . -path ./.git -prune -false -or -type f -name '*.C' -print0)
for cfg in "${files[@]}"; do
if grep -q "\$O2DPG_ROOT" "$cfg" || grep -q "\${O2DPG_ROOT}" "$cfg"; then
error=1
echo "Deprecated O2DPG_ROOT detected in $cfg, replace with O2DPG_MC_CONFIG_ROOT" >&2
fi
done
exit "$error"
pylint:
name: Pylint
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0205009

Please sign in to comment.