File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,31 @@ jobs:
1919 - test
2020 steps :
2121 - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7
22+
2223 - name : Calculate go version
2324 id : vars
2425 run : echo "go_version=$(make go-version)" >> $GITHUB_OUTPUT
26+
2527 - name : Set up Go
2628 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # tag=v5.0.2
2729 with :
2830 go-version : ${{ steps.vars.outputs.go_version }}
31+
32+ - name : Cache golangci-lint binary
33+ id : golangci-cache
34+ uses : actions/cache@v3
35+ with :
36+ # Cache location used by golangci-lint-action
37+ path : ~/.cache/golangci-lint
38+ # Change this when updating golangci-lint version
39+ key : golangci-lint-v1.60.2
40+ restore-keys : |
41+ golangci-lint-
42+
2943 - name : golangci-lint
3044 uses : golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # tag=v6.1.0
3145 with :
46+ # update the version when updating golangci-lint
3247 version : v1.60.2
3348 args : --out-format=colored-line-number
3449 working-directory : ${{matrix.working-directory}}
You can’t perform that action at this time.
0 commit comments