Skip to content

Commit

Permalink
ci: Check package bounds using packdeps once a week
Browse files Browse the repository at this point in the history
This was a part of the release procedure but we should do it proactively
instead.

Related: xmonad/xmonad#264
  • Loading branch information
liskin committed Oct 24, 2021
1 parent 9c94698 commit 8e1c358
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/packdeps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 *.cabal
- name: Check package bounds (preferred)
run: |
set -ex
packdeps --preferred *.cabal

0 comments on commit 8e1c358

Please sign in to comment.