You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [`skip-save-cache`](#skip-save-cache) | Don't save cache. |
276
+
| [`cache-invalidation-interval`](#cache-invalidation-interval) | Number of days before cache invalidation. |
277
+
| [`problem-matchers`](#problem-matchers) | Forces the usage of the embedded problem matchers. |
278
+
279
+
### Installation
280
+
281
+
#### `version`
263
282
264
283
(optional)
265
284
@@ -282,7 +301,7 @@ with:
282
301
283
302
</details>
284
303
285
-
### `install-mode`
304
+
#### `install-mode`
286
305
287
306
(optional)
288
307
@@ -304,7 +323,7 @@ with:
304
323
305
324
</details>
306
325
307
-
### `install-only`
326
+
#### `install-only`
308
327
309
328
(optional)
310
329
@@ -325,50 +344,52 @@ with:
325
344
326
345
</details>
327
346
328
-
### `github-token`
347
+
### Run
348
+
349
+
#### `verify`
329
350
330
351
(optional)
331
352
332
-
When using the `only-new-issues` option, the GitHub API is used, so a token is required.
353
+
This option is `true` by default.
333
354
334
-
By default, it uses the `github.token` from the action.
355
+
If the GitHub Action detects a configuration file, validation will be performed unless this option is set to `false`.
356
+
If there is no configuration file, validation is skipped.
357
+
358
+
The JSON Schema used to validate the configuration depends on the version of golangci-lint you are using.
335
359
336
360
<details>
337
361
<summary>Example</summary>
338
362
339
363
```yml
340
364
uses: golangci/golangci-lint-action@v9
341
365
with:
342
-
github-token: xxx
366
+
verify: false
343
367
# ...
344
368
```
345
369
346
370
</details>
347
371
348
-
### `verify`
372
+
#### `github-token`
349
373
350
374
(optional)
351
375
352
-
This option is `true` by default.
353
-
354
-
If the GitHub Action detects a configuration file, validation will be performed unless this option is set to `false`.
355
-
If there is no configuration file, validation is skipped.
376
+
When using the `only-new-issues` option, the GitHub API is used, so a token is required.
356
377
357
-
The JSON Schema used to validate the configuration depends on the version of golangci-lint you are using.
378
+
By default, it uses the `github.token` from the action.
358
379
359
380
<details>
360
381
<summary>Example</summary>
361
382
362
383
```yml
363
384
uses: golangci/golangci-lint-action@v9
364
385
with:
365
-
verify: false
386
+
github-token: xxx
366
387
# ...
367
388
```
368
389
369
390
</details>
370
391
371
-
### `only-new-issues`
392
+
#### `only-new-issues`
372
393
373
394
(optional)
374
395
@@ -393,7 +414,7 @@ with:
393
414
394
415
</details>
395
416
396
-
### `working-directory`
417
+
#### `working-directory`
397
418
398
419
(optional)
399
420
@@ -411,7 +432,7 @@ with:
411
432
412
433
</details>
413
434
414
-
### `args`
435
+
#### `args`
415
436
416
437
(optional)
417
438
@@ -438,17 +459,14 @@ with:
438
459
439
460
</details>
440
461
441
-
### `problem-matchers`
442
-
443
-
(optional)
444
-
445
-
Forces the usage of the embedded problem matchers.
462
+
### Cache
446
463
447
-
By default, the [problem matcher of Go (`actions/setup-go`)](https://github.com/actions/setup-go/blob/main/matchers.json) already handles the default golangci-lint output (`text`).
464
+
#### `skip-cache`
448
465
449
-
Works only with the `text` format (the golangci-lint default).
If set to `true`, all caching functionality will be completely disabled.
469
+
This takes precedence over all other caching options.
452
470
453
471
The default value is `false`.
454
472
@@ -458,18 +476,17 @@ The default value is `false`.
458
476
```yml
459
477
uses: golangci/golangci-lint-action@v9
460
478
with:
461
-
problem-matchers: true
479
+
skip-cache: true
462
480
# ...
463
481
```
464
482
465
483
</details>
466
484
467
-
### `skip-cache`
485
+
####`skip-save-cache`
468
486
469
487
(optional)
470
488
471
-
If set to `true`, all caching functionality will be completely disabled.
472
-
This takes precedence over all other caching options.
489
+
If set to `true`, caches will not be saved, but they may still be restored, requiring `skip-cache: false`.
473
490
474
491
The default value is `false`.
475
492
@@ -479,49 +496,57 @@ The default value is `false`.
479
496
```yml
480
497
uses: golangci/golangci-lint-action@v9
481
498
with:
482
-
skip-cache: true
499
+
skip-save-cache: true
483
500
# ...
484
501
```
485
502
486
503
</details>
487
504
488
-
###`skip-save-cache`
505
+
#### `cache-invalidation-interval`
489
506
490
507
(optional)
491
508
492
-
If set to `true`, caches will not be saved, but they may still be restored, requiring `skip-cache: false`.
509
+
Periodically invalidate a cache every `cache-invalidation-interval` days to ensure that outdated data is removed and fresh data is loaded.
493
510
494
-
The default value is `false`.
511
+
The default value is `7`.
512
+
513
+
If the number is `<= 0`, the cache will always be invalidated (not recommended).
495
514
496
515
<details>
497
516
<summary>Example</summary>
498
517
499
518
```yml
500
519
uses: golangci/golangci-lint-action@v9
501
520
with:
502
-
skip-save-cache: true
521
+
cache-invalidation-interval: 15
503
522
# ...
504
523
```
505
524
506
525
</details>
507
526
508
-
### `cache-invalidation-interval`
527
+
### Extra
528
+
529
+
#### `problem-matchers`
509
530
510
531
(optional)
511
532
512
-
Periodically invalidate a cache every `cache-invalidation-interval` days to ensure that outdated data is removed and fresh data is loaded.
533
+
Forces the usage of the embedded problem matchers.
513
534
514
-
The default value is `7`.
535
+
By default, the [problem matcher of Go (`actions/setup-go`)](https://github.com/actions/setup-go/blob/main/matchers.json) already handles the default golangci-lint output (`text`).
515
536
516
-
If the number is `<= 0`, the cache will always be invalidated (not recommended).
537
+
Works only with the `text` format (the golangci-lint default).
0 commit comments