feat: add markdown lint target and job
All checks were successful
CI / Makefile Lint (pull_request) Successful in 17s
CI / Go Lint (pull_request) Successful in 23s
CI / Unit Tests (pull_request) Successful in 14s
CI / Markdown Lint (pull_request) Successful in 14s
CI / Fuzz Tests (pull_request) Successful in 51s
CI / Mutation Tests (pull_request) Successful in 1m2s

This commit is contained in:
2026-03-20 20:39:14 -04:00
parent 20d43e8b15
commit 1e237891e0
2 changed files with 14 additions and 2 deletions

View File

@@ -39,6 +39,15 @@ jobs:
- name: Run mutation tests - name: Run mutation tests
run: make lint-makefile 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: test-unit:
name: Unit Tests name: Unit Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -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 help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk -F ':.*## ' '{printf " %-15s %s\n", $$1, $$2}' @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 lint-makefile: ## Lint the Makefile
checkmake 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 docs: ## Serve godoc locally
@echo ">>> Visit: http://localhost:6060/pkg/$$(go list -m)" @echo ">>> Visit: http://localhost:6060/pkg/$$(go list -m)"