chore(ci): use renovate

This commit is contained in:
Lukasz Mierzwa
2026-02-18 10:38:27 +00:00
committed by Łukasz Mierzwa
parent 3f552cc406
commit 809d9f0b47
3 changed files with 53 additions and 62 deletions

View File

@@ -1,62 +0,0 @@
version: 2
updates:
- package-ecosystem: "docker"
directories:
- "/"
- "/demo"
- "/internal/mapper/v017"
schedule:
interval: "weekly"
groups:
debian:
patterns:
- "debian"
node:
patterns:
- "node"
go:
patterns:
- "golang"
- package-ecosystem: "gomod"
directories:
- "/"
- "/tools/benchstat"
- "/tools/gofumpt"
- "/tools/goimports"
- "/tools/golangci-lint"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/ui"
schedule:
interval: "weekly"
groups:
bootstrap:
patterns:
- "bootstrap"
- "bootswatch"
vite:
patterns:
- "vite"
- "vite-*"
- "@vitejs/*"
jest:
patterns:
- "jest"
- "jest-*"
- "*-jest"
- "*-jest-*"
testing-library:
patterns:
- "@testing-library/*"
eslint:
patterns:
- "eslint-*"
fontawesome:
patterns:
- "@fortawesome/*"
open-pull-requests-limit: 10

20
.github/workflows/renovate.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Renovate
on:
workflow_dispatch:
schedule:
- cron: "0 12 * * 1"
jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Run Renovate
uses: renovatebot/github-action@v42.0.2
with:
configurationFile: renovate.json
token: ${{ secrets.GH_REPO_TOKEN }}

33
renovate.json Normal file
View File

@@ -0,0 +1,33 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended", "group:monorepos"],
"schedule": ["after 12pm on monday"],
"timezone": "UTC",
"automerge": false,
"platformAutomerge": false,
"packageRules": [
{
"description": "Docker base images",
"matchDatasources": ["docker"],
"matchPackagePatterns": ["^debian$", "^node$", "^golang$"],
"groupName": "docker-base-images"
},
{
"description": "Bootstrap packages",
"matchDatasources": ["npm"],
"matchPackagePatterns": ["^bootstrap$", "^bootswatch$"],
"groupName": "bootstrap"
},
{
"description": "GitHub Actions",
"matchManagers": ["github-actions"],
"groupName": "github-actions"
},
{
"description": "Go modules for tools",
"matchManagers": ["gomod"],
"matchFileNames": ["tools/**/go.mod"],
"groupName": "go-tools"
}
]
}