Skip to content

Commit

Permalink
Bump golangci-lint from 1.56.0 to 1.56.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Feb 9, 2024
1 parent 0c1b843 commit 056c87b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,24 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ steps.go_version.outputs.go_version }}
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
- name: Get date
id: get-date
shell: bash
run: |
echo "::set-output name=date::$(date -u "+%Y-%m")"
- name: Restore golangci-lint cache
uses: actions/cache@v4
timeout-minutes: 10
continue-on-error: true
with:
version: v1.54.2
args: --timeout=5m ./...
path: ${{ runner.temp }}/golangci-lint-cache
key: ${{ runner.os }}-golangci-lint-cache-${{ steps.get-date.outputs.date }}
restore-keys: |
${{ runner.os }}-golangci-lint-cache-
- name: Run golangci-lint
run: make lint
env:
GOLANGCI_LINT_CACHE: ${{ runner.temp }}/golangci-lint-cache
shfmt:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,3 @@ linters-settings:
exclude-generated: false
severity: low
confidence: low
govet:
disable:
- loopclosure
2 changes: 1 addition & 1 deletion hack/make/dep_golangci_lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $(call _assert_var,UNAME_ARCH)
$(call _assert_var,CACHE_VERSIONS)
$(call _assert_var,CACHE_BIN)

GOLANGCI_LINT_VERSION ?= 1.56.0
GOLANGCI_LINT_VERSION ?= 1.56.1

ARCH := $(UNAME_ARCH)
ifeq ($(UNAME_ARCH),x86_64)
Expand Down

0 comments on commit 056c87b

Please sign in to comment.