Skip to content

Commit 834913f

Browse files
Added linkcheck action to makefile, Added yamllint and linkcheck to verify
1 parent b3134af commit 834913f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ define checkdiff
515515
git --no-pager diff --name-only FETCH_HEAD
516516
endef
517517

518-
ALL_VERIFY_CHECKS = boilerplate shellcheck modules gen conversions go-version
518+
ALL_VERIFY_CHECKS = boilerplate shellcheck modules gen conversions go-version yamllint linkcheck
519519

520520
.PHONY: verify
521521
verify: $(addprefix verify-,$(ALL_VERIFY_CHECKS)) ## Run all verify-* targets
@@ -583,10 +583,15 @@ else
583583
endif
584584

585585

586-
.PHONY: yamllint
587-
yamllint:
586+
.PHONY: verify-yamllint
587+
verify-yamllint:
588588
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings
589589

590+
MD_FILES := $(shell find . -iname "*.md")
591+
.PHONY: verify-linkcheck
592+
verify-linkcheck:
593+
docker run --init -w /input -v $(PWD):/input --rm -it ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES)
594+
590595
## --------------------------------------
591596
## Cleanup / Verification
592597
## --------------------------------------

0 commit comments

Comments
 (0)