Skip to content

Commit

Permalink
Adds fmt to ci like in the connect repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed Nov 20, 2024
1 parent d49bb51 commit ccfba57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
- name: Test WASM build
run: make build-wasm

- name: Fmt
run: |
go install golang.org/x/tools/cmd/goimports@latest
make fmt && test -z "$(git ls-files --others --modified --exclude-standard)" || { >&2 echo "Unformatted files detected. This can be fixed with 'make fmt'."; exit 1; }
golangci-lint:
if: ${{ github.repository == 'redpanda-data/benthos' || github.event_name != 'schedule' }}
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions internal/impl/pure/processor_benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"time"

"github.com/dustin/go-humanize"

"github.com/redpanda-data/benthos/v4/internal/periodic"
"github.com/redpanda-data/benthos/v4/public/service"
)
Expand Down
3 changes: 2 additions & 1 deletion internal/impl/pure/processor_benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"testing"
"time"

"github.com/redpanda-data/benthos/v4/public/service"
"github.com/stretchr/testify/require"

"github.com/redpanda-data/benthos/v4/public/service"
)

func TestBenchmarkProcessor(t *testing.T) {
Expand Down

0 comments on commit ccfba57

Please sign in to comment.