From b5c07a075d1ab7133f5c2e1a501ae8c79debc521 Mon Sep 17 00:00:00 2001 From: Anshuman Date: Fri, 18 Jul 2025 09:49:22 +0530 Subject: [PATCH] Added linkcheck action to makefile, Added yamllint and linkcheck to verify --- .github/workflows/validate-yaml-lint.yaml | 9 --------- Makefile | 14 ++++++++++---- 2 files changed, 10 insertions(+), 13 deletions(-) delete mode 100644 .github/workflows/validate-yaml-lint.yaml diff --git a/.github/workflows/validate-yaml-lint.yaml b/.github/workflows/validate-yaml-lint.yaml deleted file mode 100644 index 13380adab..000000000 --- a/.github/workflows/validate-yaml-lint.yaml +++ /dev/null @@ -1,9 +0,0 @@ -name: YamlLint -on: [push, pull_request] -jobs: - yamllint: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 - - name: Run yamllint make target - run: make yamllint diff --git a/Makefile b/Makefile index 5f58ae9a9..5b882696c 100644 --- a/Makefile +++ b/Makefile @@ -515,7 +515,7 @@ define checkdiff git --no-pager diff --name-only FETCH_HEAD endef -ALL_VERIFY_CHECKS = boilerplate shellcheck modules gen conversions go-version +ALL_VERIFY_CHECKS = boilerplate shellcheck modules gen conversions go-version yamllint linkcheck .PHONY: verify verify: $(addprefix verify-,$(ALL_VERIFY_CHECKS)) ## Run all verify-* targets @@ -583,9 +583,15 @@ else endif -.PHONY: yamllint -yamllint: - @docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings +CURR_DIR := $(shell pwd) +.PHONY: verify-yamllint +verify-yamllint: + @docker run --rm $$(tty -s && echo "-it" || echo) -v $(CURR_DIR):/data cytopia/yamllint:latest /data --config-file /data/.yamllint --no-warnings + +MD_FILES := $(shell find . -iname "*.md") +.PHONY: verify-linkcheck +verify-linkcheck: + docker run --init -w /input -v $(CURR_DIR):/input --rm -it ghcr.io/tcort/markdown-link-check:3.12 -q -p $(MD_FILES) ## -------------------------------------- ## Cleanup / Verification