@@ -3,8 +3,8 @@ name: golangci-lint
33on :
44 push :
55 branches :
6- - master
76 - main
7+ - master
88 pull_request :
99
1010permissions :
@@ -17,41 +17,11 @@ jobs:
1717 name : lint
1818 runs-on : ubuntu-latest
1919 steps :
20- - uses : actions/checkout@v3
21- - uses : actions/setup-go@v4
20+ - uses : actions/checkout@v4
21+ - uses : actions/setup-go@v5
2222 with :
23- go-version : ' 1.24'
24- cache : false
23+ go-version : stable
2524 - name : golangci-lint
26- uses : golangci/golangci-lint-action@v3
25+ uses : golangci/golangci-lint-action@v6
2726 with :
28- # Require: The version of golangci-lint to use.
29- # When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
30- # When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
31- version : v1.60.1
32-
33- # Optional: working directory, useful for monorepos
34- # working-directory: somedir
35-
36- # Optional: golangci-lint command line arguments.
37- #
38- # Note: By default, the `.golangci.yml` file should be at the root of the repository.
39- # The location of the configuration file can be changed by using `--config=`
40- # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
41- args : --timeout=3m --verbose
42-
43- # Optional: show only new issues if it's a pull request. The default value is `false`.
44- # only-new-issues: true
45-
46- # Optional: if set to true, then all caching functionality will be completely disabled,
47- # takes precedence over all other caching options.
48- # skip-cache: true
49-
50- # Optional: if set to true, then the action won't cache or restore ~/go/pkg.
51- # skip-pkg-cache: true
52-
53- # Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
54- # skip-build-cache: true
55-
56- # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
57- # install-mode: "goinstall"
27+ version : v1.64
0 commit comments