Skip to content

Commit 019bac2

Browse files
Add Renovate config (#4499)
1 parent 7dc3dc4 commit 019bac2

File tree

3 files changed

+125
-1
lines changed

3 files changed

+125
-1
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Validate Renovate config
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'renovate.json'
9+
- '.github/workflows/renovate-config-validator.yml'
10+
11+
pull_request:
12+
paths:
13+
- 'renovate.json'
14+
- '.github/workflows/renovate-config-validator.yml'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
validate:
21+
runs-on: ubuntu-x64-small
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4
25+
with:
26+
persist-credentials: false
27+
28+
- name: Validate Renovate Config
29+
uses: grafana/shared-workflows/actions/validate-renovate-config@validate-renovate-config/v0.1.0

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ cmd/**
1616
pkg/test/**
1717
examples/**
1818
.devcontainer/**
19-
.vscode/**
19+
.vscode/**
20+
renovate.json
21+
renovate.json5

renovate.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices"
5+
],
6+
"timezone": "UTC",
7+
"schedule": [
8+
"before 4am on monday"
9+
],
10+
"prConcurrentLimit": 10,
11+
"ignoreDeps": [],
12+
"packageRules": [
13+
{
14+
"description": "Ignore major updates for all dependencies",
15+
"matchUpdateTypes": ["major"],
16+
"enabled": false
17+
},
18+
{
19+
"description": "Group all Go module updates (main project)",
20+
"matchManagers": ["gomod"],
21+
"matchPaths": [
22+
"go.mod",
23+
"api/go.mod",
24+
"lidia/go.mod"
25+
],
26+
"groupName": "gomod",
27+
"schedule": ["before 4am on monday"]
28+
},
29+
{
30+
"description": "Group all npm updates",
31+
"matchManagers": ["npm"],
32+
"matchPaths": ["package.json"],
33+
"groupName": "npm",
34+
"schedule": ["before 4am on monday"]
35+
},
36+
{
37+
"description": "Group all Docker updates",
38+
"matchManagers": ["dockerfile"],
39+
"matchPaths": ["cmd/pyroscope/**"],
40+
"groupName": "docker",
41+
"schedule": ["before 4am on the first day of the month"]
42+
},
43+
{
44+
"description": "Dev containers updates",
45+
"matchManagers": ["devcontainer"],
46+
"schedule": ["before 4am on monday"]
47+
},
48+
{
49+
"description": "Group all GitHub Actions updates",
50+
"matchManagers": ["github-actions"],
51+
"groupName": "github-actions",
52+
"schedule": ["before 4am on monday"]
53+
},
54+
{
55+
"description": "Go modules examples - only pyroscope-go package",
56+
"matchManagers": ["gomod"],
57+
"matchPaths": [
58+
"examples/golang-pgo/go.mod",
59+
"examples/language-sdk-instrumentation/golang-push/rideshare-alloy/go.mod",
60+
"examples/language-sdk-instrumentation/golang-push/rideshare-k6/go.mod",
61+
"examples/language-sdk-instrumentation/golang-push/rideshare/go.mod",
62+
"examples/language-sdk-instrumentation/golang-push/simple/go.mod",
63+
"examples/tracing/golang-push/go.mod"
64+
],
65+
"allowedVersions": "/.*/",
66+
"matchPackageNames": ["github.com/grafana/pyroscope-go"],
67+
"groupName": "examples-gomod",
68+
"schedule": ["before 4am on monday"]
69+
},
70+
{
71+
"description": "Ignore all other dependencies in examples directories except pyroscope-go",
72+
"matchManagers": ["gomod"],
73+
"matchPaths": [
74+
"examples/golang-pgo/go.mod",
75+
"examples/language-sdk-instrumentation/golang-push/rideshare-alloy/go.mod",
76+
"examples/language-sdk-instrumentation/golang-push/rideshare-k6/go.mod",
77+
"examples/language-sdk-instrumentation/golang-push/rideshare/go.mod",
78+
"examples/language-sdk-instrumentation/golang-push/simple/go.mod",
79+
"examples/tracing/golang-push/go.mod"
80+
],
81+
"excludePackageNames": ["github.com/grafana/pyroscope-go"],
82+
"enabled": false
83+
},
84+
{
85+
"description": "Automatically merge patch updates",
86+
"matchUpdateTypes": ["patch"],
87+
"automerge": false,
88+
"automergeType": "pr",
89+
"automergeStrategy": "squash",
90+
"platformAutomerge": false
91+
}
92+
]
93+
}

0 commit comments

Comments
 (0)