Skip to content

Commit 7840642

Browse files
authored
Update golangci-lint (#13)
1 parent 4a62359 commit 7840642

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
1313
Add `Makefile` to your module with includes standard targets.
1414

1515
```Makefile
16-
GOLANGCI_LINT_VERSION := "v1.36.0" # Optional.
16+
GOLANGCI_LINT_VERSION := "v1.37.0" # Optional.
1717

1818
# The head of Makefile determines location of dev-go to include standard targets.
1919
GO ?= go

scripts/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
[ -z "$GO" ] && GO=go
4-
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.36.0"
4+
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.37.0"
55

66
# detecting GOPATH and removing trailing "/" if any
77
GOPATH="$(go env GOPATH)"

templates/github/workflows/golangci-lint.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,25 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: golangci-lint
17-
uses: golangci/golangci-lint-action@v2.3.0
17+
uses: golangci/golangci-lint-action@v2.4.0
1818
with:
1919
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
20-
version: v1.36.0
20+
version: v1.37.0
21+
22+
# Optional: working directory, useful for monorepos
23+
# working-directory: somedir
2124

2225
# Optional: golangci-lint command line arguments.
23-
# args: ./the-only-dir-to-analyze/...
26+
# args: --issues-exit-code=0
27+
28+
# Optional: show only new issues if it's a pull request. The default value is `false`.
29+
# only-new-issues: true
30+
31+
# Optional: if set to true then the action will use pre-installed Go.
32+
# skip-go-installation: true
33+
34+
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
35+
# skip-pkg-cache: true
2436

25-
# Required: the token is used for fetching a list of releases of golangci-lint.
26-
# The secret `GITHUB_TOKEN` is automatically created by GitHub,
27-
# no need to create it manually.
28-
# https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#about-the-github_token-secret
29-
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
38+
# skip-build-cache: true

0 commit comments

Comments
 (0)