Files
authentik-kubernetes-operator/Makefile
T
t.behrendt 9dcf345add
CI / install-dependencies (pull_request) Successful in 24s
CI / image check (pull_request) Successful in 5s
CI / build check (pull_request) Successful in 24s
CI / check format (pull_request) Successful in 22s
CI / check lint (pull_request) Successful in 27s
CI / test (pull_request) Successful in 3m41s
ci: fix Makefile test
2026-05-25 13:16:14 +02:00

41 lines
688 B
Makefile

ifneq (,$(wildcard ./.env))
include .env
export
endif
.PHONY: build run codegen build-image test test-unit test-coverage lint format check-format
build:
go build -o main
build-image:
docker build -t authentik-kubernetes-operator:latest .
run:
make build
./main --kubeconfig=/home/tbehrendt/.kube/config
codegen:
./scripts/codegen.sh
test: test-unit test-coverage
test-unit:
go test ./... -coverprofile=coverage.out
test-coverage:
go tool gcov2lcov -infile coverage.out > lcov.info
lint:
go vet ./...
format:
gofmt -w .
check-format:
@OUTPUT=$$(gofmt -l .); \
if [ -n "$$OUTPUT" ]; then \
echo "Formatter failed for:"; \
echo "$$OUTPUT"; \
exit 1; \
fi