Skip to content

Commit 3782c52

Browse files
authored
Merge pull request #11988 from haskell/mergify/bp/3.18/pr-11969
Backport #11969: Run `cabal check` on CI
2 parents 88d4b30 + be40746 commit 3782c52

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ jobs:
153153
fi
154154
echo "FLAGS=$FLAGS" >> "$GITHUB_ENV"
155155
156+
- name: Run cabal check
157+
run: make check
158+
156159
- name: Validate build
157160
run: sh validate.sh $FLAGS -s build
158161

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ FORMAT_DIRS_TODO := \
4949
cabal-testsuite/static \
5050
solver-benchmarks
5151

52+
.PHONY: check
53+
check:
54+
@cd Cabal && cabal check | grep -q "No errors or warnings could be found in the package."
55+
@cd cabal-install && cabal check | grep -q "No errors or warnings could be found in the package."
56+
@cd Cabal-syntax && cabal check | grep -q "No errors or warnings could be found in the package."
57+
@cd Cabal-hooks && cabal check | grep -q "No errors or warnings could be found in the package."
58+
@cd hooks-exe && cabal check | grep -q "No errors or warnings could be found in the package."
59+
@cd cabal-install-solver && cabal check | grep -q "No errors or warnings could be found in the package."
60+
5261
.PHONY: style-todo
5362
style-todo: ## Configured for fourmolu, avoiding GHC parser failures.
5463
@fourmolu -q $(FORMAT_DIRS_TODO) > /dev/null

0 commit comments

Comments
 (0)