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:
@@ -147,11 +147,10 @@ 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 }}
154
- args: --path-mode=abs
155
154
` ` `
156
155
157
156
</details>
@@ -230,11 +229,10 @@ jobs:
230
229
with:
231
230
go-version: ${{ inputs.go-version }}
232
231
- name: golangci-lint ${{ matrix.modules }}
233
- uses: golangci/golangci-lint-action@v7
232
+ uses: golangci/golangci-lint-action@v8
234
233
with:
235
234
version: ${{ inputs.golangci-lint-version }}
236
235
working-directory: ${{ matrix.modules }}
237
- args: --path-mode=abs
238
236
` ` `
239
237
240
238
You will also likely need to add the following `.gitattributes` file to ensure that line endings for Windows builds are properly formatted :
@@ -247,6 +245,7 @@ You will also likely need to add the following `.gitattributes` file to ensure t
247
245
248
246
# # Compatibility
249
247
248
+ * `v8.0.0` works with `golangci-lint` version >= `v2.1.0`
250
249
* `v7.0.0` supports golangci-lint v2 only.
251
250
* `v6.0.0+` removes `annotations` option, removes the default output format (`github-actions`).
252
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`.
@@ -273,9 +272,9 @@ When `install-mode` is:
273
272
<summary>Example</summary>
274
273
275
274
` ` ` yml
276
- uses: golangci/golangci-lint-action@v7
275
+ uses: golangci/golangci-lint-action@v8
277
276
with:
278
- version: v2.0
277
+ version: v2.1
279
278
# ...
280
279
` ` `
281
280
@@ -293,7 +292,7 @@ The default value is `binary`.
293
292
<summary>Example</summary>
294
293
295
294
` ` ` yml
296
- uses: golangci/golangci-lint-action@v7
295
+ uses: golangci/golangci-lint-action@v8
297
296
with:
298
297
install-mode: "goinstall"
299
298
# ...
@@ -313,7 +312,7 @@ By default, it uses the `github.token` from the action.
313
312
<summary>Example</summary>
314
313
315
314
` ` ` yml
316
- uses: golangci/golangci-lint-action@v7
315
+ uses: golangci/golangci-lint-action@v8
317
316
with:
318
317
github-token: xxx
319
318
# ...
@@ -336,7 +335,7 @@ The JSON Schema used to validate the configuration depends on the version of gol
336
335
<summary>Example</summary>
337
336
338
337
` ` ` yml
339
- uses: golangci/golangci-lint-action@v7
338
+ uses: golangci/golangci-lint-action@v8
340
339
with:
341
340
verify: false
342
341
# ...
@@ -361,7 +360,7 @@ The default value is `false`.
361
360
<summary>Example</summary>
362
361
363
362
` ` ` yml
364
- uses: golangci/golangci-lint-action@v7
363
+ uses: golangci/golangci-lint-action@v8
365
364
with:
366
365
only-new-issues: true
367
366
# ...
@@ -379,7 +378,7 @@ Working directory, useful for monorepos.
379
378
<summary>Example</summary>
380
379
381
380
` ` ` yml
382
- uses: golangci/golangci-lint-action@v7
381
+ uses: golangci/golangci-lint-action@v8
383
382
with:
384
383
working-directory: somedir
385
384
# ...
@@ -404,7 +403,7 @@ golangci-lint command line arguments.
404
403
<summary>Example</summary>
405
404
406
405
` ` ` yml
407
- uses: golangci/golangci-lint-action@v7
406
+ uses: golangci/golangci-lint-action@v8
408
407
with:
409
408
# In some rare cases,
410
409
# you could have to use ` ${{ github.workspace }}` as base directory to reference your configuration file.
@@ -432,7 +431,7 @@ The default value is `false`.
432
431
<summary >Example</summary >
433
432
434
433
``` yml
435
- uses : golangci/golangci-lint-action@v7
434
+ uses : golangci/golangci-lint-action@v8
436
435
with :
437
436
problem-matchers : true
438
437
# ...
@@ -453,7 +452,7 @@ The default value is `false`.
453
452
<summary >Example</summary >
454
453
455
454
``` yml
456
- uses : golangci/golangci-lint-action@v7
455
+ uses : golangci/golangci-lint-action@v8
457
456
with :
458
457
skip-cache : true
459
458
# ...
@@ -473,7 +472,7 @@ The default value is `false`.
473
472
<summary >Example</summary >
474
473
475
474
``` yml
476
- uses : golangci/golangci-lint-action@v7
475
+ uses : golangci/golangci-lint-action@v8
477
476
with :
478
477
skip-save-cache : true
479
478
# ...
@@ -495,7 +494,7 @@ If the number is `<= 0`, the cache will always be invalidated (Not recommended).
495
494
<summary >Example</summary >
496
495
497
496
``` yml
498
- uses : golangci/golangci-lint-action@v7
497
+ uses : golangci/golangci-lint-action@v8
499
498
with :
500
499
cache-invalidation-interval : 15
501
500
# ...
0 commit comments