Skip to content

Dependency management #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ['*']
2 changes: 0 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches: [master]
pull_request:
schedule:
- cron: 0 5 * * 0 # every sunday 05:00 UTC

jobs:
integration-test:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/updated-deps.yaml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down