Skip to content

Commit cc02158

Browse files
committed
ci: add markdown lint
1 parent d718140 commit cc02158

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
markdownlint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: articulate/actions-markdownlint@v1.1.0

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ fmt:
2929
lint:
3030
go run github.com/golangci/golangci-lint/cmd/golangci-lint@latest run
3131

32+
lint-markdown:
33+
markdownlint .
34+
35+
3236
example:
3337
( cd examples/full-app-gourmet && go run . -debug )
3438

@@ -42,5 +46,5 @@ docs:
4246
docs-open:
4347
go run golang.org/x/pkgsite/cmd/pkgsite@latest -http localhost:8084 -open
4448

45-
.PHONY: docs-open docs example-watch example lint fmt ci ci-full
49+
.PHONY: docs-open docs example-watch example lint lint-markdown fmt ci ci-full
4650
.PHONY: dependencies-analyze build bench cover-web cover test

0 commit comments

Comments
 (0)