Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actions/go-linter/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@ runs:
version: 2025.1.1
install-go: false
working-directory: ${{ inputs.working-directory }}

- name: Check gofmt formatting
Comment thread
comatory marked this conversation as resolved.
run: |
files=$(gofmt -l .)
if [ -n "$files" ]; then
echo "The following files are not gofmt-formatted:"
echo "$files"
exit 1
fi
shell: bash
working-directory: ${{ inputs.working-directory }}
Comment thread
dkorittki marked this conversation as resolved.
3 changes: 3 additions & 0 deletions aws-lambda-router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ deploy: build-sam
lint:
staticcheck ./...

format:
go fmt ./...

test:
go test -v ./...

Expand Down
5 changes: 4 additions & 1 deletion composition-go/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ test-coverage:
go test -v -coverprofile=coverage_normal.out -coverpkg=github.com/wundergraph/cosmo/composition-go/... ./...
go test -v -tags=wg_composition_v8 -coverprofile=coverage_v8.out -coverpkg=github.com/wundergraph/cosmo/composition-go/... ./...

.PHONY: test
format:
go fmt ./...

.PHONY: test format
3 changes: 3 additions & 0 deletions graphqlmetrics/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ lint:
go vet ./...
staticcheck ./...

format:
go fmt ./...

VERSION?=dev
build:
CGO_ENABLED=0 go build -trimpath -ldflags "-extldflags -static -X github.com/wundergraph/cosmo/graphqlmetrics/core.Version=$(VERSION)" -a -o graphqlmetrics cmd/main.go
Expand Down
3 changes: 3 additions & 0 deletions router-tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ lint:
go vet ./...
staticcheck ./...

format:
go fmt ./...

test-stability:
@while $(MAKE) test-fresh; do :; done

Expand Down
3 changes: 3 additions & 0 deletions router/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ lint:
go vet ./...
staticcheck ./...

format:
go fmt ./...

clean-testcache:
go clean -testcache

Expand Down
Loading