diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 0e09bcfab2..c06113ce60 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -56,15 +56,7 @@ jobs: - uses: actions/checkout@v4 - name: Cabal check - run: | - for x in $(find . -name '*.cabal' | grep -vE 'dist-newstyle|asserts\.cabal' | cut -c 3-); do - ( - d=$(dirname $x) - echo "== $d ==" - cd $d - cabal check - ) - done + run: ./scripts/ci/check-cabal-files.sh check-release-badges: diff --git a/scripts/ci/check-cabal-files.sh b/scripts/ci/check-cabal-files.sh index 7ef07a2b52..1abd13e09c 100755 --- a/scripts/ci/check-cabal-files.sh +++ b/scripts/ci/check-cabal-files.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -Eeuo pipefail + for x in $(find . -name '*.cabal' | grep -vE 'dist-newstyle|asserts\.cabal' | cut -c 3-); do ( d=$(dirname $x)