Skip to content

Commit

Permalink
Lint docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Sep 15, 2024
1 parent 41bb14f commit 56b4646
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ lint_docs:
image: node:20.17-alpine3.19

before_script:
- apk --update add make bash
- apk --update add make bash git

script:
- make lint-docs
- make lint-docs-ci

audit:
stage: test
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL = /bin/bash -o pipefail

.PHONY: test test-ci lint lint-ci fmt fmt-ci upgrade clean release lint-docs audit encrypt decrypt sops
.PHONY: test test-ci lint lint-ci fmt fmt-ci upgrade clean release lint-docs lint-docs-ci audit encrypt decrypt sops

test:
gotestsum --format pkgname --packages ./... -- -race -timeout 10m -cover -covermode atomic
Expand Down Expand Up @@ -35,7 +35,10 @@ release:
npx --yes --package '[email protected]' --package '@release-it/[email protected]' -- release-it

lint-docs:
npx --yes --package 'markdownlint-cli@~0.34.0' -- markdownlint --ignore-path .gitignore --ignore testdata/ '**/*.md'
npx --yes --package 'markdownlint-cli@~0.41.0' -- markdownlint --ignore-path .gitignore --ignore testdata/ --fix '**/*.md'

lint-docs-ci: lint-docs
git diff --exit-code --color=always

audit:
go list -json -deps ./... | nancy sleuth --skip-update-check
Expand Down

0 comments on commit 56b4646

Please sign in to comment.