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
14 changes: 0 additions & 14 deletions .github/dependabot.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.20', '1.19' ]
go: [stable, oldstable]

steps:
- uses: actions/checkout@v6
Expand All @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.20', '1.19' ]
go: [stable, oldstable]

steps:
- uses: actions/checkout@v6
Expand All @@ -48,7 +48,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.20', '1.19' ]
go: [stable, oldstable]

steps:
- uses: actions/checkout@v6
Expand All @@ -59,7 +59,8 @@ jobs:
- name: Run staticcheck
uses: dominikh/staticcheck-action@v1.4.0
with:
version: "2023.1.3"
# renovate: datasource=github-releases depName=dominikh/go-tools
version: "2026.2.2"
install-go: false
cache-key: ${{ matrix.go }}

Expand All @@ -68,7 +69,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
go: [ '1.20', '1.19' ]
go: [stable, oldstable]

# See https://docs.github.com/en/actions/using-containerized-services/creating-redis-service-containers
services:
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
.DEFAULT_GOAL := help

# renovate: datasource=github-releases depName=dominikh/go-tools
STATICCHECK_VERSION := 2026.2.2

.PHONY: help
help: ## Outputs the help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand All @@ -18,7 +21,7 @@ fmt: ## Runs go fmt (to check for go coding guidelines).

.PHONY: staticcheck
staticcheck: ## Runs static analysis to prevend bugs, foster code simplicity, performance and editor integration.
go get -u honnef.co/go/tools/cmd/staticcheck
go install honnef.co/go/tools/cmd/staticcheck@$(STATICCHECK_VERSION)
staticcheck ./...

.PHONY: all
Expand Down
46 changes: 46 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:best-practices"
],
"timezone": "Europe/Berlin",
"schedule": [
"* 0-4 * * 1"
],
"semanticCommits": "disabled",
"postUpdateOptions": [
"gomodTidy"
],
"customManagers": [
{
"customType": "regex",
"description": "Update the staticcheck release passed to dominikh/staticcheck-action, which the github-actions manager does not read",
"managerFilePatterns": [
"/^\\.github/workflows/.+\\.ya?ml$/"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)\\s+version: \"(?<currentValue>[^\"]+)\""
],
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)(\\.(?<patch>\\d+))?$"
},
{
"customType": "regex",
"description": "Update the staticcheck release installed by the Makefile, so local runs always match CI",
"managerFilePatterns": [
"/^Makefile$/"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>[^\\s]+?)\\s+STATICCHECK_VERSION := (?<currentValue>\\S+)"
],
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)(\\.(?<patch>\\d+))?$"
}
],
"packageRules": [
{
"description": "Batch routine GitHub Actions updates into one weekly pull request, but keep major bumps separate because they usually need workflow changes",
"matchManagers": ["github-actions"],
"matchUpdateTypes": ["minor", "patch", "digest", "pin"],
"groupName": "GitHub Actions"
}
]
}
Loading