Skip to content

Commit

Permalink
feat: add examples target to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
omissis committed Sep 10, 2022
1 parent f311c8a commit 3f13a88
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,49 @@ lint-go:
test:
@go test ./...

.PHONY: examples

examples:
@echo "== VALIDATE | text | config file generating violations ===========================\n"
@go run main.go validate examples/.goarkitect.violations.yaml
@echo "\n================================================================================\n"

@echo "== VALIDATE | text | config file with no violations ==============================\n"
@go run main.go validate examples/.goarkitect.yaml
@echo "\n================================================================================\n"

@echo "== VALIDATE | json | config file generating violations ===========================\n"
@go run main.go validate --output=json examples/.goarkitect.violations.yaml
@echo "\n================================================================================\n"

@echo "== VALIDATE | json | config file with no violations ==============================\n"
@go run main.go validate --output=json examples/.goarkitect.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | text | invalid config file =========================================\n"
@go run main.go verify examples/.goarkitect.invalid.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | text | config file generating violations ===========================\n"
@go run main.go verify examples/.goarkitect.violations.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | text | config file with no violations ==============================\n"
@go run main.go verify examples/.goarkitect.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | json | invalid config file =========================================\n"
@go run main.go verify --output=json examples/.goarkitect.invalid.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | json | config file generating violations ===========================\n"
@go run main.go verify --output=json examples/.goarkitect.violations.yaml
@echo "\n================================================================================\n"

@echo "== VERIFY | json | config file with no violations ==============================\n"
@go run main.go verify --output=json examples/.goarkitect.yaml
@echo "\n================================================================================\n"

.PHONY: release-local release

release-local:
Expand Down

0 comments on commit 3f13a88

Please # to comment.