Skip to content

Commit 9cd2e4d

Browse files
committed
Include .C macros in config check
1 parent b7fac4f commit 9cd2e4d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/syntax-checks.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,19 @@ jobs:
9292
done
9393
exit "$error"
9494
95+
- name: Run .C configs check
96+
run: |
97+
error=0
98+
readarray -d '' files < \
99+
<(find . -path ./.git -prune -false -or -type f -name '*.C' -print0)
100+
for cfg in "${files[@]}"; do
101+
if grep -q "\$O2DPG_ROOT" "$cfg" || grep -q "\${O2DPG_ROOT}" "$cfg"; then
102+
error=1
103+
echo "Deprecated O2DPG_ROOT detected in $cfg, replace with O2DPG_MC_CONFIG_ROOT" >&2
104+
fi
105+
done
106+
exit "$error"
107+
95108
pylint:
96109
name: Pylint
97110
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)