Skip to content

Commit cbfb060

Browse files
authored
Add golangci-lint to renovate (#22)
Allow Renovate to update golangci-lint
2 parents cb7142d + 942770a commit cbfb060

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
env:
10+
GOLANGCI_LINT_VERSION: "v1.55.2"
11+
912
jobs:
1013
build:
1114
strategy:
@@ -25,7 +28,7 @@ jobs:
2528
- name: Enforce standard format
2629
uses: golangci/[email protected]
2730
with:
28-
version: v1.55.2
31+
version: ${{ env.GOLANGCI_LINT_VERSION }}
2932
args: --timeout 3m --enable=gofmt --verbose
3033
- name: Test
3134
run: go test --cover -v ./...

renovate.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
"schedule:weekly",
66
":automergeStableNonMajor"
77
],
8+
"customManagers": [
9+
{
10+
"customType": "regex",
11+
"fileMatch": [
12+
"^.github/(?:workflows|actions)/.+\\.ya?ml$"
13+
],
14+
"matchStrings": [
15+
"GOLANGCI_LINT_VERSION: \"(?<currentValue>.*?)\""
16+
],
17+
"depNameTemplate": "github.com/golangci/golangci-lint",
18+
"datasourceTemplate": "go"
19+
}
20+
],
821
"golang": {
922
"packageRules": [
1023
{

0 commit comments

Comments
 (0)