2022-05-13 13:30:22 +00:00
|
|
|
default: build
|
|
|
|
|
2025-01-02 11:06:01 +00:00
|
|
|
PACKAGES=./libs/... ./internal/... ./cmd/... ./bundle/... .
|
|
|
|
|
|
|
|
lint:
|
2025-01-02 11:18:38 +00:00
|
|
|
./lint.sh ./...
|
2024-12-11 12:53:57 +00:00
|
|
|
|
2025-01-02 11:06:01 +00:00
|
|
|
lintcheck:
|
2025-01-02 11:18:38 +00:00
|
|
|
golangci-lint run ./...
|
2022-05-13 13:30:22 +00:00
|
|
|
|
2025-01-02 11:06:01 +00:00
|
|
|
test:
|
2025-01-02 11:18:38 +00:00
|
|
|
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- ${PACKAGES}
|
2025-01-02 11:06:01 +00:00
|
|
|
|
|
|
|
cover:
|
2025-01-02 11:18:38 +00:00
|
|
|
gotestsum --format pkgname-and-test-fails --no-summary=skipped -- -coverprofile=coverage.txt ${PACKAGES}
|
2022-05-13 13:30:22 +00:00
|
|
|
|
2025-01-02 11:06:01 +00:00
|
|
|
showcover:
|
2025-01-02 11:18:38 +00:00
|
|
|
go tool cover -html=coverage.txt
|
2022-05-13 13:30:22 +00:00
|
|
|
|
|
|
|
build: vendor
|
2025-01-02 11:18:38 +00:00
|
|
|
go build -mod vendor
|
2022-05-13 13:30:22 +00:00
|
|
|
|
2022-05-14 17:56:09 +00:00
|
|
|
snapshot:
|
2025-01-02 11:18:38 +00:00
|
|
|
go build -o .databricks/databricks
|
2022-05-14 17:56:09 +00:00
|
|
|
|
2022-05-13 13:30:22 +00:00
|
|
|
vendor:
|
2025-01-02 11:18:38 +00:00
|
|
|
go mod vendor
|
2024-12-18 10:19:14 +00:00
|
|
|
|
|
|
|
schema:
|
2025-01-02 11:18:38 +00:00
|
|
|
go run ./bundle/internal/schema ./bundle/internal/schema ./bundle/schema/jsonschema.json
|
2022-05-13 13:30:22 +00:00
|
|
|
|
2024-12-17 17:16:58 +00:00
|
|
|
INTEGRATION = gotestsum --format github-actions --rerun-fails --jsonfile output.json --packages "./integration/..." -- -parallel 4 -timeout=2h
|
|
|
|
|
2024-12-09 09:52:08 +00:00
|
|
|
integration:
|
2024-12-17 17:16:58 +00:00
|
|
|
$(INTEGRATION)
|
|
|
|
|
|
|
|
integration-short:
|
|
|
|
$(INTEGRATION) -short
|
2023-10-16 15:32:49 +00:00
|
|
|
|
2025-01-02 11:06:01 +00:00
|
|
|
.PHONY: lint lintcheck test cover showcover build snapshot vendor schema integration integration-short
|