Skip to content

Commit b5c07a0

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

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

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

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

Makefile

Lines changed: 10 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,15 @@ 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+
CURR_DIR := $(shell pwd)
587+
.PHONY: verify-yamllint
588+
verify-yamllint:
589+
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(CURR_DIR):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings
590+
591+
MD_FILES := $(shell find . -iname "*.md")
592+
.PHONY: verify-linkcheck
593+
verify-linkcheck:
594+
docker run --init -w /input -v $(CURR_DIR):/input --rm -it ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES)
589595

590596
## --------------------------------------
591597
## Cleanup / Verification

0 commit comments

Comments
 (0)