Skip to content

Commit

Permalink
Add golangci-lint to renovate (#22)
Browse files Browse the repository at this point in the history
Allow Renovate to update golangci-lint
  • Loading branch information
xballoy committed Dec 19, 2023
2 parents cb7142d + 942770a commit cbfb060
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ main ]

env:
GOLANGCI_LINT_VERSION: "v1.55.2"

jobs:
build:
strategy:
Expand All @@ -25,7 +28,7 @@ jobs:
- name: Enforce standard format
uses: golangci/golangci-lint-action@v3.7.0
with:
version: v1.55.2
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --timeout 3m --enable=gofmt --verbose
- name: Test
run: go test --cover -v ./...
Expand Down
13 changes: 13 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@
"schedule:weekly",
":automergeStableNonMajor"
],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^.github/(?:workflows|actions)/.+\\.ya?ml$"
],
"matchStrings": [
"GOLANGCI_LINT_VERSION: \"(?<currentValue>.*?)\""
],
"depNameTemplate": "github.com/golangci/golangci-lint",
"datasourceTemplate": "go"
}
],
"golang": {
"packageRules": [
{
Expand Down

0 comments on commit cbfb060

Please sign in to comment.