summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d9ea8d6..3815b6f 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,9 @@ setup:
build: $(AUTHZD_BIN) $(SPARKLED_BIN)
+test-schema:
+ @$(ZED) validate etc/authzd/*.yaml
+
test-unit:
@go test -shuffle=on ./...
@@ -39,7 +42,7 @@ test-race:
test-integration: build-image
@IMAGE_TAG=$(IMAGE_TAG) go test -tags=integration ./test/integration/...
-test: clean test-unit test-integration
+test: clean test-unit test-schema test-integration
build-image:
@docker build --network=host --no-cache --tag $(IMAGE_TAG) .
@@ -52,8 +55,7 @@ run-image: clean build-image
lint:
@go tool yamlfmt --lint -exclude vendor .
- @$(ZED) validate etc/authzd/*.zed
- @$(ZED) validate etc/authzd/*.yaml
+ @$(ZED) validate etc/authzd/*
tidy:
@go get -u ./...