Skip to content

Commit 4e31471

Browse files
committed
kueueviz frontend manage via renovate
1 parent bb2b22f commit 4e31471

File tree

3 files changed

+52
-16
lines changed

3 files changed

+52
-16
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,7 @@ updates:
8383
- dependency-name: k8s.io/*
8484
update-types: ["version-update:semver-major", "version-update:semver-minor"]
8585

86-
# Maintain npm dependencies for KueueViz frontend
87-
- package-ecosystem: "npm"
88-
directory: "/cmd/kueueviz/frontend"
89-
schedule:
90-
interval: "weekly"
91-
labels:
92-
- "ok-to-test"
93-
- "release-note-none"
94-
groups:
95-
mui-packages:
96-
patterns:
97-
- "@mui/*"
98-
all:
99-
update-types:
100-
- "minor"
101-
- "patch"
86+
# Frontend npm dependencies managed by Renovate (see renovate.json5)
10287

10388
# Maintain npm dependencies for KueueViz frontend cypress e2e tests
10489
- package-ecosystem: "npm"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: update-versions-with-renovate
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
renovate:
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'kubernetes-sigs/kueue'
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
steps:
19+
- name: checkout
20+
uses: actions/checkout@v5
21+
- name: run renovate (dry-run on PRs)
22+
uses: renovatebot/[email protected]
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
configurationFile: renovate.json5
26+
env:
27+
LOG_LEVEL: info
28+
RENOVATE_DRY_RUN: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}

renovate.json5

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:recommended", "helpers:pinGitHubActionDigests"],
4+
"labels": ["ok-to-test", "release-note-none"],
5+
"enabledManagers": ["npm"],
6+
"ignorePaths": ["site/**", "test/e2e/kueueviz/**"],
7+
"packageRules": [
8+
{
9+
"description": "Group MUI packages in KueueViz frontend",
10+
"matchManagers": ["npm"],
11+
"matchFileNames": ["cmd/kueueviz/frontend/**"],
12+
"groupName": "mui-packages",
13+
"matchPackageNames": ["@mui/{/,}**"]
14+
},
15+
{
16+
"description": "Group minor/patch updates for KueueViz frontend",
17+
"matchManagers": ["npm"],
18+
"matchFileNames": ["cmd/kueueviz/frontend/**"],
19+
"matchUpdateTypes": ["minor", "patch"],
20+
"groupName": "frontend minor and patch"
21+
}
22+
]
23+
}

0 commit comments

Comments
 (0)