diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7bc91e1..c12887b 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,6 +39,15 @@ jobs: - name: Run mutation tests run: make lint-makefile + lint-markdown: + name: Markdown Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Run markdown lint + run: make lint-markdown + test-unit: name: Unit Tests runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 2ea9847..bfd252d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all help install clean test-unit test-mutation test-fuzz test docs lint-go lint-makefile lint +.PHONY: all help install clean test-unit test-mutation test-fuzz test docs lint-go lint-makefile lint-markdown lint help: ## Show this help @grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk -F ':.*## ' '{printf " %-15s %s\n", $$1, $$2}' @@ -32,7 +32,10 @@ lint-go: ## Lint Go code lint-makefile: ## Lint the Makefile checkmake Makefile -lint: lint-go lint-makefile ## Lint all code +lint-markdown: ## Lint Markdown files + docker run --rm -v $(CURDIR):/workdir davidanson/markdownlint-cli2 "**/*.md" + +lint: lint-go lint-makefile lint-markdown ## Lint all code docs: ## Serve godoc locally @echo ">>> Visit: http://localhost:6060/pkg/$$(go list -m)"