54
54
with :
55
55
go-version : stable
56
56
- name : golangci-lint
57
- uses : golangci/golangci-lint-action@v7
57
+ uses : golangci/golangci-lint-action@v8
58
58
with :
59
- version : v2.0
59
+ version : v2.1
60
60
` ` `
61
61
62
62
</details>
92
92
with :
93
93
go-version : ${{ matrix.go }}
94
94
- name : golangci-lint
95
- uses : golangci/golangci-lint-action@v7
95
+ uses : golangci/golangci-lint-action@v8
96
96
with :
97
- version : v2.0
97
+ version : v2.1
98
98
` ` `
99
99
100
100
You will also likely need to add the following ` .gitattributes` file to ensure that line endings for Windows builds are properly formatted:
120
120
121
121
env:
122
122
GO_VERSION: stable
123
- GOLANGCI_LINT_VERSION: v2.0
123
+ GOLANGCI_LINT_VERSION: v2.1
124
124
125
125
jobs:
126
126
detect-modules:
@@ -147,7 +147,7 @@ jobs:
147
147
with:
148
148
go-version: ${{ env.GO_VERSION }}
149
149
- name: golangci-lint ${{ matrix.modules }}
150
- uses: golangci/golangci-lint-action@v7
150
+ uses: golangci/golangci-lint-action@v8
151
151
with:
152
152
version: ${{ env.GOLANGCI_LINT_VERSION }}
153
153
working-directory: ${{ matrix.modules }}
@@ -179,7 +179,7 @@ jobs:
179
179
with:
180
180
os: ${{ matrix.os }}
181
181
go-version: ${{ matrix.go-version }}
182
- golangci-lint-version: v2.0
182
+ golangci-lint-version: v2.1
183
183
` ` `
184
184
185
185
` ` ` yaml
201
201
golangci-lint-version:
202
202
description: 'Golangci-lint version'
203
203
type: string
204
- default: 'v2.0 '
204
+ default: 'v2.1 '
205
205
206
206
jobs:
207
207
detect-modules:
@@ -229,7 +229,7 @@ jobs:
229
229
with:
230
230
go-version: ${{ inputs.go-version }}
231
231
- name: golangci-lint ${{ matrix.modules }}
232
- uses: golangci/golangci-lint-action@v7
232
+ uses: golangci/golangci-lint-action@v8
233
233
with:
234
234
version: ${{ inputs.golangci-lint-version }}
235
235
working-directory: ${{ matrix.modules }}
@@ -245,6 +245,7 @@ You will also likely need to add the following `.gitattributes` file to ensure t
245
245
246
246
# # Compatibility
247
247
248
+ * `v8.0.0` works with `golangci-lint` version >= `v2.1.0`
248
249
* `v7.0.0` supports golangci-lint v2 only.
249
250
* `v6.0.0+` removes `annotations` option, removes the default output format (`github-actions`).
250
251
* `v5.0.0+` removes `skip-pkg-cache` and `skip-build-cache` because the cache related to Go itself is already handled by `actions/setup-go`.
@@ -271,9 +272,9 @@ When `install-mode` is:
271
272
<summary>Example</summary>
272
273
273
274
` ` ` yml
274
- uses: golangci/golangci-lint-action@v7
275
+ uses: golangci/golangci-lint-action@v8
275
276
with:
276
- version: v2.0
277
+ version: v2.1
277
278
# ...
278
279
` ` `
279
280
@@ -291,7 +292,7 @@ The default value is `binary`.
291
292
<summary>Example</summary>
292
293
293
294
` ` ` yml
294
- uses: golangci/golangci-lint-action@v7
295
+ uses: golangci/golangci-lint-action@v8
295
296
with:
296
297
install-mode: "goinstall"
297
298
# ...
@@ -311,7 +312,7 @@ By default, it uses the `github.token` from the action.
311
312
<summary>Example</summary>
312
313
313
314
` ` ` yml
314
- uses: golangci/golangci-lint-action@v7
315
+ uses: golangci/golangci-lint-action@v8
315
316
with:
316
317
github-token: xxx
317
318
# ...
@@ -334,7 +335,7 @@ The JSON Schema used to validate the configuration depends on the version of gol
334
335
<summary>Example</summary>
335
336
336
337
` ` ` yml
337
- uses: golangci/golangci-lint-action@v7
338
+ uses: golangci/golangci-lint-action@v8
338
339
with:
339
340
verify: false
340
341
# ...
@@ -359,7 +360,7 @@ The default value is `false`.
359
360
<summary>Example</summary>
360
361
361
362
` ` ` yml
362
- uses: golangci/golangci-lint-action@v7
363
+ uses: golangci/golangci-lint-action@v8
363
364
with:
364
365
only-new-issues: true
365
366
# ...
@@ -377,7 +378,7 @@ Working directory, useful for monorepos.
377
378
<summary>Example</summary>
378
379
379
380
` ` ` yml
380
- uses: golangci/golangci-lint-action@v7
381
+ uses: golangci/golangci-lint-action@v8
381
382
with:
382
383
working-directory: somedir
383
384
# ...
@@ -402,7 +403,7 @@ golangci-lint command line arguments.
402
403
<summary>Example</summary>
403
404
404
405
` ` ` yml
405
- uses: golangci/golangci-lint-action@v7
406
+ uses: golangci/golangci-lint-action@v8
406
407
with:
407
408
# In some rare cases,
408
409
# you could have to use ` ${{ github.workspace }}` as base directory to reference your configuration file.
@@ -430,7 +431,7 @@ The default value is `false`.
430
431
<summary >Example</summary >
431
432
432
433
``` yml
433
- uses : golangci/golangci-lint-action@v7
434
+ uses : golangci/golangci-lint-action@v8
434
435
with :
435
436
problem-matchers : true
436
437
# ...
@@ -451,7 +452,7 @@ The default value is `false`.
451
452
<summary >Example</summary >
452
453
453
454
``` yml
454
- uses : golangci/golangci-lint-action@v7
455
+ uses : golangci/golangci-lint-action@v8
455
456
with :
456
457
skip-cache : true
457
458
# ...
@@ -471,7 +472,7 @@ The default value is `false`.
471
472
<summary >Example</summary >
472
473
473
474
``` yml
474
- uses : golangci/golangci-lint-action@v7
475
+ uses : golangci/golangci-lint-action@v8
475
476
with :
476
477
skip-save-cache : true
477
478
# ...
@@ -493,7 +494,7 @@ If the number is `<= 0`, the cache will always be invalidated (Not recommended).
493
494
<summary >Example</summary >
494
495
495
496
``` yml
496
- uses : golangci/golangci-lint-action@v7
497
+ uses : golangci/golangci-lint-action@v8
497
498
with :
498
499
cache-invalidation-interval : 15
499
500
# ...
0 commit comments