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
The following options are experimental: those may or may not be supported in the future, and so they will be either converted into a dedicated option or removed.
559
+
560
+
List of comma-separated options.
561
+
562
+
<details>
563
+
<summary>Example</summary>
564
+
565
+
```yaml
566
+
uses: golangci/golangci-lint-action@v9
567
+
with:
568
+
experimental: "foo,bar"
569
+
```
570
+
571
+
</details>
572
+
573
+
#### `automatic-module-directories`
574
+
575
+
(optional)
576
+
577
+
This option will run golangci-lint in each module directory, useful for monorepos.
578
+
579
+
The automatic detection of modules uses the `working-directory` as the base directory if defined, otherwise the root directory.
580
+
581
+
> [!IMPORTANT]
582
+
> - The cache key will refer to the `working-directory` (if defined) because all the golangci-lint runs must use the same cache directory/key.
583
+
> - The version detection will only work if the project has a single module.
584
+
> - If the project has multiple modules, the custom build file must be located in the repository root ( or `working-directory`).
585
+
586
+
<details>
587
+
<summary>Example</summary>
588
+
589
+
```yaml
590
+
uses: golangci/golangci-lint-action@v9
591
+
with:
592
+
experimental: "automatic-module-directories"
593
+
```
594
+
595
+
</details>
596
+
555
597
## Annotations
556
598
557
599
Currently, GitHub parses the action's output and creates [annotations](https://github.blog/2018-12-14-introducing-check-runs-and-annotations/).
0 commit comments