Skip to content

Commit 997d062

Browse files
committed
Run cabal outdated on CI
1 parent 5fe8d8d commit 997d062

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+
# To temporarily disable strict checks for a package, only comment out
55+
# `--exit-code`, so that you still get the informational output.
56+
#
57+
# Example:
58+
#
59+
# To "disable" strict checks for the `Cabal` package, change
60+
#
61+
# cd Cabal && cabal outdated --exit-code
62+
#
63+
# to
64+
#
65+
# cd Cabal && cabal outdated # --exit-code
66+
#
67+
# If you temporarily disable strict checks for a package:
68+
#
69+
# - on `master`, then open a corresponding issue to re-enable it:
70+
#
71+
# https://github.com/haskell/cabal/issues/new?labels=priority:+high+:fire:&title=re-enable+%60cabal+outdated%60+on+CI
72+
#
73+
# - on a release branch, then make sure that you run `make outdated`
74+
# manually before making a release
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)