Skip to content

Commit

Permalink
chore: add recipe to perform before-pr checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajil1213 committed Jul 25, 2024
1 parent ed45f30 commit 85fd9dd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ DOCKER_IMAGE_NAME ?=

.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-25s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

##@ Build

Expand Down Expand Up @@ -202,7 +202,8 @@ test: ## Runs all tests in the workspace including unit and docs tests.
make test-doc

.PHONY: pr
pr: ## Runs lints (without fixing) and unit tests (run this before creating a PR).
make lint && \
make sec && \
make test-unit
pr: lint sec test-doc test-unit test-functional ## Runs lints (without fixing), audit and tests (run this before creating a PR).
@echo "\n\033[36m======== CHECKS_COMPLETE ========\033[0m\n"
@test -z "$$(git status --porcelain)" || echo "WARNNG: You have uncommitted changes"
@echo "All good to create a PR!"

0 comments on commit 85fd9dd

Please sign in to comment.