Skip to content

Commit

Permalink
deps: update golangci-lint workflows, config and version
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Jun 18, 2024
1 parent 33a46e1 commit 75bc7af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.19
- uses: actions/checkout@v3
go-version: 1.22.4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1
with:
version: v1.49.0
version: v1.59.0
# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
5 changes: 2 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
run:
go: '1.19'
timeout: 5m

linters:
disable-all: true
# Enable specific linter
enable:
# default linters as of v1.49.0
# default linters as of v1.59.0
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- typecheck
- unused
# specific linters
- typecheck
- dupl
- whitespace
- revive
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION=$$(git describe --tags 2>/dev/null || echo dev)
GITCOMMIT=$$(git rev-parse HEAD)
BUILDERARCH=$$(uname -m)

GOLANGCI_VERSION=1.49.0
GOLANGCI_VERSION=1.59.0

OUTPUTNAME=kdigger

Expand Down

0 comments on commit 75bc7af

Please sign in to comment.