From 9cd2e4d51ad00499ff89452ce46235461e92411e Mon Sep 17 00:00:00 2001 From: Marco Giacalone Date: Fri, 29 Nov 2024 11:50:32 +0100 Subject: [PATCH] Include .C macros in config check --- .github/workflows/syntax-checks.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/syntax-checks.yml b/.github/workflows/syntax-checks.yml index 430279bc5..44bd0306f 100644 --- a/.github/workflows/syntax-checks.yml +++ b/.github/workflows/syntax-checks.yml @@ -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