Skip to content

Commit

Permalink
Use a script to check cabal files in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Dec 18, 2024
1 parent c0564af commit 92f054f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 2 additions & 0 deletions scripts/ci/check-cabal-files.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 92f054f

Please sign in to comment.