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
Go allows a Git repository to contain multiple Go modules (i.e. multiple directory trees that have their own `go.mod` file).
4
+
When running Go tools like `go test ./...` or `go vet ./...` from the parent directory, it will only recurse into directories belonging to the same Go module.
5
+
In order to run the command in all subdirectories, no matter which module they belong to, the command has to be invoked separately for every Go module.
6
+
7
+
This GitHub Action makes it easy to do this.
8
+
9
+
## Usage
10
+
11
+
Take the following example, running a command (or multiple commands) directly:
12
+
13
+
```yml
14
+
steps:
15
+
- name: Code Quality Checks
16
+
run: |
17
+
go vet ./...
18
+
gofmt .
19
+
```
20
+
21
+
Using this action, this would run the same command(s) in all Go modules:
0 commit comments