Skip to content
Merged
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
56 changes: 54 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,58 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"],
"extends": [
"config:recommended",
"helpers:pinGitHubActionDigests",
"customManagers:githubActionsVersions"
],
"timezone": "Europe/Berlin",
"automerge": false,
"timezone": "Europe/Berlin"
"platformAutomerge": false,
"automergeType": "pr",
"automergeSchedule": ["* 9-18 * * *"],
"schedule": ["* 0-7 * * 6"],
"updateNotScheduled": false,
"minimumReleaseAge": "3 days",
"postUpdateOptions": ["gomodTidy"],
"packageRules": [
{
"description": "CI tooling (Actions, golangci-lint, helm in ci.yaml) never reaches the flat: automerge non-major updates and digest pins once CI passes",
"matchManagers": ["github-actions", "custom.regex"],
"matchUpdateTypes": ["minor", "patch", "digest", "pin", "pinDigest"],
"automerge": true
},
{
"description": "golang build image patches are mostly security fixes; CI builds and tests the image, and chore(deps) does not cut a release",
"matchDatasources": ["docker"],
"matchPackageNames": ["golang"],
"matchUpdateTypes": ["patch", "digest"],
"automerge": true
},
{
"description": "Go module patches (metrics, OpenAPI runtime, yaml) in one weekly PR, so at most one release a week. Deploying it stays a manual PR in smart-home",
"matchManagers": ["gomod"],
"matchUpdateTypes": ["patch"],
"matchPackageNames": ["!github.com/eclipse/paho.mqtt.golang"],
"groupName": "go modules (patch)",
"automerge": true
},
{
"description": "The MQTT client carries every TRV command: always manual, and a week for regressions to show up",
"matchPackageNames": ["github.com/eclipse/paho.mqtt.golang"],
"automerge": false,
"minimumReleaseAge": "7 days",
"addLabels": ["heating-path"]
},
{
"description": "The Go directive and toolchain change compiler and runtime behaviour: manual",
"matchDepNames": ["go", "toolchain"],
"automerge": false
},
{
"description": "Majors are always manual",
"matchUpdateTypes": ["major"],
"automerge": false,
"addLabels": ["major"]
}
]
}
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
permissions:
contents: read

env:
# renovate: datasource=npm depName=renovate
RENOVATE_VERSION: 44.253.4

jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -50,6 +54,17 @@ jobs:
- run: helm lint charts/heating-control -f charts/heating-control/ci-values.yaml
- run: helm template test charts/heating-control -f charts/heating-control/ci-values.yaml

# --strict also fails when Renovate would want to migrate the config.
renovate-config:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- run: npx --yes --package "renovate@${RENOVATE_VERSION}" -- renovate-config-validator --strict

# Builds without pushing, so a broken Dockerfile shows up in the PR.
image:
if: github.event_name == 'pull_request'
Expand Down