Commit 1fad1a5 1 parent 5f43b86 commit 1fad1a5 Copy full SHA for 1fad1a5
File tree 2 files changed +16
-16
lines changed
2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 16
16
with :
17
17
python-version : 3.x
18
18
19
+ - uses : actions/cache@v4
20
+ with :
21
+ path : ~/.cache/golangci-lint
22
+ key : pre-commit-golangci-lint|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}|${{ hashFiles('**/*.go') }}
23
+ restore-keys : |
24
+ pre-commit-golangci-lint|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}|
25
+ pre-commit-golangci-lint|${{ env.pythonLocation }}|
26
+ pre-commit-golangci-lint|
27
+
19
28
- uses : pre-commit/action@v3.0.1
20
29
21
30
test :
36
45
with :
37
46
token : ${{ secrets.CODECOV_TOKEN }}
38
47
39
- lint :
40
- name : Lint
41
- runs-on : ubuntu-latest
42
- steps :
43
- - uses : actions/checkout@v4
44
- - uses : actions/setup-go@v5
45
- with :
46
- go-version-file : go.mod
47
-
48
- - uses : golangci/golangci-lint-action@v6
49
- with :
50
- version : v1.62.2 # renovate: datasource=github-releases depName=golangci/golangci-lint
51
-
52
- # In general linting is quite fast with warm caches, but a fresh run might take some time.
53
- args : --timeout 5m
54
-
55
48
deploy-manifests :
56
49
name : Check deployment manifests
57
50
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -50,3 +50,10 @@ repos:
50
50
rev : v0.10.0.1
51
51
hooks :
52
52
- id : shellcheck
53
+
54
+ - repo : https://github.com/golangci/golangci-lint
55
+ rev : v1.62.2
56
+ hooks :
57
+ - id : golangci-lint-full
58
+ args : [--timeout=5m]
59
+ language_version : 1.23.4 # renovate: datasource=golang-version
You can’t perform that action at this time.
0 commit comments