Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update make test to run pre-commit hooks on the whole codebase #92

Merged
merged 2 commits into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: install-hooks regenerate-samples test
.PHONY: install-hooks regenerate-samples test run-hooks

.git/hooks/pre-commit: venv
${CURDIR}/venv/bin/pre-commit install --install-hooks
Expand All @@ -11,7 +11,10 @@ regenerate-samples:
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger

test:
run-hooks: venv
${CURDIR}/venv/bin/pre-commit run --all-files

test: run-hooks
${CURDIR}/gradlew plugin:build
${CURDIR}/gradlew plugin:publishToMavenLocal
${CURDIR}/gradlew generateSwagger
Expand Down