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
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:
@@ -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
|
||||||
|
|||||||
7
Makefile
7
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
|
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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user