File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed
templates/github/workflows Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
13
13
Add ` Makefile ` to your module with includes standard targets.
14
14
15
15
``` Makefile
16
- GOLANGCI_LINT_VERSION := "v1.36 .0" # Optional.
16
+ GOLANGCI_LINT_VERSION := "v1.37 .0" # Optional.
17
17
18
18
# The head of Makefile determines location of dev-go to include standard targets.
19
19
GO ?= go
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
[ -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"
5
5
6
6
# detecting GOPATH and removing trailing "/" if any
7
7
GOPATH=" $( go env GOPATH) "
Original file line number Diff line number Diff line change @@ -14,16 +14,25 @@ jobs:
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
- name : golangci-lint
17
- uses : golangci/golangci-lint-action@v2.3 .0
17
+ uses : golangci/golangci-lint-action@v2.4 .0
18
18
with :
19
19
# 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
21
24
22
25
# 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
24
36
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
You can’t perform that action at this time.
0 commit comments