Skip to content

Commit 99a9efe

Browse files
committed
Run cabal outdated on CI
1 parent 5fe8d8d commit 99a9efe

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/validate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ jobs:
188188
fi
189189
echo "FLAGS=$FLAGS" >> "$GITHUB_ENV"
190190
191+
- name: Run cabal outdated
192+
run: make outdated # never ever disabled this, not even temporarily, adjust the corresponding `make` target instead
193+
191194
- name: Validate build
192195
run: sh validate.sh $FLAGS -s build
193196

Makefile

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

52+
.PHONY: outdated
53+
outdated:
54+
# If you temporarily disable strict checks for a package:
55+
#
56+
# - on `master`, then open a corresponding issue to re-enable it:
57+
#
58+
# https://github.com/haskell/cabal/issues/new?labels=priority:+high+:fire:&title=re-enable+%60cabal+outdated%60+on+CI
59+
#
60+
# - on a release branch, then make sure that you run `make outdated`
61+
# manually before making a release
62+
#
63+
# NOTE: To disable strict checks for a package, only comment out
64+
# `--exit-code`, so that you still get the informational output.
65+
#
66+
# Example:
67+
#
68+
# To "disable" strict checks for the `Cabal` package, change
69+
#
70+
# cd Cabal && cabal outdated --exit-code
71+
#
72+
# to
73+
#
74+
# cd Cabal && cabal outdated # --exit-code
75+
#
76+
cd Cabal && cabal outdated --exit-code
77+
cd cabal-install && cabal outdated --exit-code
78+
cd Cabal-syntax && cabal outdated --exit-code
79+
cd Cabal-hooks && cabal outdated --exit-code
80+
cd hooks-exe && cabal outdated --exit-code
81+
cd cabal-install-solver && cabal outdated --exit-code
82+
5283
.PHONY: style-todo
5384
style-todo: ## Configured for fourmolu, avoiding GHC parser failures.
5485
@fourmolu -q $(FORMAT_DIRS_TODO) > /dev/null

0 commit comments

Comments
 (0)