Skip to content
Merged
Changes from all 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
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,21 @@ docker-build:

docker-build-multiarch:
@docker buildx build --platform linux/amd64,linux/arm64 -t aws-das-processor:latest .

test-coverage:
@mkdir -p bin
@go test -coverprofile=bin/coverage.out ./...
@go tool cover -html=bin/coverage.out -o bin/coverage.html || true
@echo "Coverage report: bin/coverage.html"

dev-setup:
@go mod download
@go install honnef.co/go/tools/cmd/staticcheck@latest || true
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest || true
@echo "Development environment ready."

lambda-package:
@mkdir -p bin
@GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/bootstrap main.go filter.go
@cd bin && zip -j aws-das-processor.zip bootstrap
@echo "Lambda package: bin/aws-das-processor.zip"
Loading