Skip to content

Commit

Permalink
chore: Change Renovate configuration and change project files for new…
Browse files Browse the repository at this point in the history
… Renovate
  • Loading branch information
oxyno-zeta committed Sep 23, 2024
1 parent 7fd1750 commit 39d1cea
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ HAS_MOCKGEN:=$(shell command -v mockgen;)
HAS_GOTESTSUM:=$(shell command -v gotestsum;)
HAS_FIELDALIGNMENT:=$(shell command -v fieldalignment;)

#
## Tool versions
#

# renovate: datasource=github-tags depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION := "v1.60.3"

.DEFAULT_GOAL := code/lint

#############
Expand Down Expand Up @@ -175,7 +182,7 @@ ifndef HAS_GOLANGCI_LINT
ifndef HAS_CURL
$(error You must install curl)
endif
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin v1.60.3
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin $(GOLANGCI_LINT_VERSION)
endif
ifndef HAS_GIT
$(error You must install Git)
Expand Down
34 changes: 33 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
{
"extends": ["config:base"],
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended",
":rebaseStalePrs",
":semanticCommits",
":semanticCommitScope(deps)"
],
"configMigration": true,
"labels": ["renovate"],
"pre-commit": {
"enabled": true
},
"vulnerabilityAlerts": {
"enabled": true,
"labels": ["vulnerability-alert"]
},
"packageRules": [
{
"groupName": "mkdocs",
"groupSlug": "mkdocs",
"matchPackageNames": ["mkdocs-material", "squidfunk/mkdocs-material"]
}
],
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^Makefile$"],
"matchStrings": [
"#\\s*renovate:\\s*datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?\\s.*?_VERSION\\s*:=\\s*\"(?<currentValue>.*)\"\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
],
"ignoreDeps": ["github.com/aws/aws-sdk-go"]
}

0 comments on commit 39d1cea

Please sign in to comment.