Skip to content

Commit e342fde

Browse files
authored
[chore] Ensure entire repo is formatted in workflow (#6148)
* [chore] fmt all * Fix fmt all workflow * Break fmt to ensure workflow is working * Fix formatting error, update command suggestion
1 parent c2397d4 commit e342fde

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/build-and-test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ jobs:
8686
- name: gofmt
8787
run: |
8888
make install-tools
89-
make fmt
89+
make for-all CMD="make fmt"
9090
if ! git diff --exit-code; then
91-
echo "One or more Go files are not formatted correctly. Run 'make fmt' and push the changes."
91+
echo "One or more Go files are not formatted correctly. Run 'make for-all CMD="make fmt"' and push the changes."
9292
exit 1
9393
fi
9494

tests/testutils/golden.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import (
3636
)
3737

3838
type metricCollectionTestOpts struct {
39-
compareMetricsOptions []pmetrictest.CompareMetricsOption
4039
collectorEnvVars map[string]string
4140
fileMounts map[string]string
41+
compareMetricsOptions []pmetrictest.CompareMetricsOption
4242
}
4343

4444
type MetricsCollectionTestOption func(*metricCollectionTestOpts)

tests/testutils/socket_proxy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import (
2525
)
2626

2727
type SocketProxy struct {
28+
listener net.Listener
29+
t testing.TB
2830
Path string
2931
Endpoint string
3032
ContainerEndpoint string
31-
listener net.Listener
3233
wg sync.WaitGroup
3334
active atomic.Bool
34-
t testing.TB
3535
}
3636

3737
func CreateDockerSocketProxy(t testing.TB) *SocketProxy {

0 commit comments

Comments
 (0)