diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 837b67e..51d329f 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -5,11 +5,21 @@ updates: directory: / schedule: interval: weekly + open-pull-requests-limit: 10 + commit-message: + prefix: chore + include: scope + groups: + all-actions: + patterns: ['*'] - package-ecosystem: github-actions - directory: "/" + directory: / schedule: interval: weekly open-pull-requests-limit: 10 commit-message: - prefix: "chore" - include: "scope" + prefix: chore + include: scope + groups: + all-actions: + patterns: ['*'] diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4143657..95fb729 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -4,8 +4,6 @@ on: push: branches: [master] pull_request: - schedule: - - cron: 0 5 * * 0 # every sunday 05:00 UTC jobs: integration-test: diff --git a/.github/workflows/updated-deps.yaml b/.github/workflows/updated-deps.yaml new file mode 100644 index 0000000..596e0a1 --- /dev/null +++ b/.github/workflows/updated-deps.yaml @@ -0,0 +1,28 @@ +name: Check for outdated dependencies + +on: + pull_request: + schedule: + - cron: 0 5 * * 0 # every sunday 05:00 UTC + +jobs: + check-dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + - name: Install dependencies + run: npm clean-install + - name: Check for outdated dependencies + run: |- + OUTDATED=$(npm outdated || true) + if [ -n "$OUTDATED" ]; then + echo "Outdated dependencies found:" + echo "$OUTDATED" + exit 1 + fi diff --git a/README.md b/README.md index 730ad8e..a1c0b36 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Get Supported GHC Version [![Test Get Supported GHC Version Action](https://github.com/webdevred/get-supported-ghc/actions/workflows/test.yaml/badge.svg)](https://github.com/webdevred/get-supported-ghc/actions/workflows/test.yaml) +[![Check for outdated dependencies](https://github.com/webdevred/get-supported-ghc/actions/workflows/updated-deps.yaml/badge.svg?event=schedule)](https://github.com/webdevred/get-supported-ghc/actions/workflows/updated-deps.yaml) This GitHub Action automatically detects the latest GHC (Glasgow Haskell Compiler) version compatible with your Haskell project's `base` dependency constraint in `package.yaml`.