Skip to content

Commit 5338924

Browse files
authored
Dependency management (#8)
* dependabot: adjust commit message format for npm * remove running tests from schedule * added workflow for showing dependencies as badge * Added dependency checking badge * Group Dependabot PRs together
1 parent 20c5d41 commit 5338924

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

.github/dependabot.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,21 @@ updates:
55
directory: /
66
schedule:
77
interval: weekly
8+
open-pull-requests-limit: 10
9+
commit-message:
10+
prefix: chore
11+
include: scope
12+
groups:
13+
all-actions:
14+
patterns: ['*']
815
- package-ecosystem: github-actions
9-
directory: "/"
16+
directory: /
1017
schedule:
1118
interval: weekly
1219
open-pull-requests-limit: 10
1320
commit-message:
14-
prefix: "chore"
15-
include: "scope"
21+
prefix: chore
22+
include: scope
23+
groups:
24+
all-actions:
25+
patterns: ['*']

.github/workflows/test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7-
schedule:
8-
- cron: 0 5 * * 0 # every sunday 05:00 UTC
97

108
jobs:
119
integration-test:

.github/workflows/updated-deps.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check for outdated dependencies
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
- cron: 0 5 * * 0 # every sunday 05:00 UTC
7+
8+
jobs:
9+
check-dependencies:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: npm
19+
- name: Install dependencies
20+
run: npm clean-install
21+
- name: Check for outdated dependencies
22+
run: |-
23+
OUTDATED=$(npm outdated || true)
24+
if [ -n "$OUTDATED" ]; then
25+
echo "Outdated dependencies found:"
26+
echo "$OUTDATED"
27+
exit 1
28+
fi

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Get Supported GHC Version
22

33
[![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)
4+
[![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)
45

56
This GitHub Action automatically detects the latest GHC (Glasgow Haskell Compiler) version compatible with your Haskell project's `base` dependency constraint in `package.yaml`.
67

0 commit comments

Comments
 (0)