Skip to content

Commit

Permalink
[chore] Add lightweight make check target
Browse files Browse the repository at this point in the history
The link check is super slow, but the rest of the `all` checks are
useful while iterating on a change. This PR adds a new target called
`check` that depends on all the same targets minus the link check.
  • Loading branch information
braydonk committed Nov 16, 2024
1 parent fa564c9 commit 8ccd778
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ OPA_CONTAINER=$(shell cat dependencies.Dockerfile | awk '$$4=="opa" {print $$2}'

DOCKER_USER=$(shell id -u):$(shell id -g)

CHECK_TARGETS=install-tools markdownlint misspell table-check compatibility-check \
schema-check check-file-and-folder-names-in-docs



# TODO: add `yamllint` step to `all` after making sure it works on Mac.
.PHONY: all
all: install-tools markdownlint markdown-link-check misspell table-check compatibility-check schema-check \
check-file-and-folder-names-in-docs
all: $(CHECK_TARGETS) markdown-link-check

.PHONY: check
check: $(CHECK_TARGETS)

.PHONY: check-file-and-folder-names-in-docs
check-file-and-folder-names-in-docs:
Expand Down

0 comments on commit 8ccd778

Please sign in to comment.