Files
go-otel/Makefile
T
mats 193e6c6e39
Build and Publish / Metadata (push) Successful in 4s
Build and Publish / BuildAndPushAmd64 (push) Failing after 1m27s
update rum
2026-11-04 13:04:34 +01:00

29 lines
718 B
Makefile

.PHONY: build build-rum test-rum lint install-lint
build: build-rum
go build -o server ./cmd/server
build-rum:
npm --prefix rum ci
npm --prefix rum run build
test-rum:
npm --prefix rum ci
npm --prefix rum test
lint:
@which golangci-lint > /dev/null || (echo "golangci-lint not found, installing..." && make install-lint)
golangci-lint run ./...
install-lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
fix:
golangci-lint run --fix ./...
semgrep:
@which semgrep > /dev/null || (echo "semgrep not found, please install it: brew install semgrep")
semgrep scan --config auto --config semgrep-rules.yml
semgrep-ci:
semgrep scan --config auto --config semgrep-rules.yml --error