Skip to content

Commit 7f22515

Browse files
Added linkcheck action to makefile, Added yamllint and linkcheck to verify
1 parent b3134af commit 7f22515

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/validate-yaml-lint.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

Makefile

Lines changed: 9 additions & 4 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,9 +583,14 @@ else
583583
endif
584584

585585

586-
.PHONY: yamllint
587-
yamllint:
588-
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings
586+
.PHONY: verify-yamllint
587+
verify-yamllint:
588+
@docker run --rm $$(tty -s && echo "-it" || echo) -v ${PWD}:/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings
589+
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)
589594

590595
## --------------------------------------
591596
## Cleanup / Verification

0 commit comments

Comments
 (0)