@@ -21,10 +21,27 @@ jobs:
21
21
with :
22
22
go-version-file : go.mod
23
23
check-latest : true
24
- - run : make deps-backend deps-tools
25
- - run : make lint-backend
24
+ - run : make deps-backend
25
+ - uses : actions/cache/restore@v4
26
+ with :
27
+ path : |
28
+ ~/.cache/golangci-lint
29
+ ~/.cache/gopls
30
+ key : golangci-v1.59.0-linux-${{ runner.arch }}-${{hashFiles('go.mod')}}
26
31
env :
27
- TAGS : bindata sqlite sqlite_unlock_notify
32
+ GOOS : linux
33
+ - uses : golangci/golangci-lint-action@v6
34
+ with :
35
+ version : v1.59.0
36
+ skip-cache : true
37
+ args : --build-tags bindata,sqlite,sqlite_unlock_notify
38
+ - run : make lint-go-vet lint-go-gopls lint-editorconfig
39
+ - uses : actions/cache/save@v4
40
+ with :
41
+ path : |
42
+ ~/.cache/golangci-lint
43
+ ~/.cache/gopls
44
+ key : golangci-v1.59.0-linux-${{ runner.arch }}-${{hashFiles('go.mod')}}
28
45
29
46
lint-templates :
30
47
if : needs.files-changed.outputs.templates == 'true'
@@ -94,12 +111,28 @@ jobs:
94
111
with :
95
112
go-version-file : go.mod
96
113
check-latest : true
97
- - run : make deps-backend deps-tools
98
- - run : make lint-go-windows lint-go-vet
114
+ - run : make deps-backend
115
+ - uses : actions/cache/restore@v4
116
+ with :
117
+ path : |
118
+ ~/.cache/golangci-lint
119
+ ~/.cache/gopls
120
+ key : golangci-v1.59.0-windows-${{ runner.arch }}-${{hashFiles('go.mod')}}
99
121
env :
100
- TAGS : bindata sqlite sqlite_unlock_notify
101
122
GOOS : windows
102
- GOARCH : amd64
123
+ - uses : golangci/golangci-lint-action@v6
124
+ with :
125
+ version : v1.59.0
126
+ skip-cache : true
127
+ args : --build-tags bindata,sqlite,sqlite_unlock_notify
128
+ env :
129
+ GOOS : windows
130
+ - uses : actions/cache/save@v4
131
+ with :
132
+ path : |
133
+ ~/.cache/golangci-lint
134
+ ~/.cache/gopls
135
+ key : golangci-v1.59.0-windows-${{ runner.arch }}-${{hashFiles('go.mod')}}
103
136
104
137
lint-go-gogit :
105
138
if : needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
@@ -111,10 +144,28 @@ jobs:
111
144
with :
112
145
go-version-file : go.mod
113
146
check-latest : true
114
- - run : make deps-backend deps-tools
115
- - run : make lint-go
147
+ - run : make deps-backend
148
+ - uses : actions/cache/restore@v4
149
+ with :
150
+ path : |
151
+ ~/.cache/golangci-lint
152
+ ~/.cache/gopls
153
+ key : golangci-v1.59.0-linux-gogit-${{ runner.arch }}-${{hashFiles('go.mod')}}
116
154
env :
117
- TAGS : bindata gogit sqlite sqlite_unlock_notify
155
+ GOOS : linux
156
+ - uses : golangci/golangci-lint-action@v6
157
+ with :
158
+ version : v1.59.0
159
+ skip-cache : true
160
+ args : --build-tags gogit,bindata,sqlite,sqlite_unlock_notify
161
+ env :
162
+ GOOS : linux
163
+ - uses : actions/cache/save@v4
164
+ with :
165
+ path : |
166
+ ~/.cache/golangci-lint
167
+ ~/.cache/gopls
168
+ key : golangci-v1.59.0-linux-gogit-${{ runner.arch }}-${{hashFiles('go.mod')}}
118
169
119
170
checks-backend :
120
171
if : needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.actions == 'true'
0 commit comments