ci: Check package bounds using packdeps once a week

This was a part of the release procedure but we should do it proactively
instead.

Related: https://github.com/xmonad/xmonad/issues/264
This commit is contained in:
Tomas Janousek
2021-10-24 11:31:31 +01:00
parent c2a1a3c0a6
commit 0ebedbb533

40
.github/workflows/packdeps.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: Packdeps
on:
workflow_dispatch:
schedule:
# Run every Saturday
- cron: '0 3 * * 6'
jobs:
packdeps:
name: Packdeps
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
# packdeps doesn't build with newer as of 2021-10
ghc-version: '8.8'
- name: Install packdeps
run: |
set -ex
echo "$HOME/.cabal/bin" >> $GITHUB_PATH
cabal install packdeps
- name: Check package bounds (all)
continue-on-error: true
run: |
set -ex
packdeps \
--exclude X11 \
*.cabal
- name: Check package bounds (preferred)
run: |
set -ex
packdeps \
--preferred \
--exclude X11 \
*.cabal