Skip to content

Commit

Permalink
Merge pull request #413 from bobrik/ivan/markdown-links-check
Browse files Browse the repository at this point in the history
Run markdown-links-check in github actions
  • Loading branch information
bobrik authored May 24, 2024
2 parents 99b1456 + a3f6b97 commit 46eb08d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,15 @@ jobs:
- name: Run clang-format check
run: make clang-format-check

markdown-links:
name: Run markdown-links-check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Run markdown-links-check
run: make markdown-link-check

jsonschema:
name: Run jsonschema checks
runs-on: ubuntu-24.04
Expand Down
7 changes: 7 additions & 0 deletions .markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "http://localhost:16686/"
}
]
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ lint:
go mod verify
CGO_LDFLAGS="$(CGO_LDFLAGS)" CGO_CFLAGS="$(CGO_CFLAGS)" golangci-lint run ./...

.PHONY: markdown-link-check
markdown-link-check:
docker run --rm -v $(shell pwd):/tmp/check:ro -w /tmp/check --entrypoint /bin/sh ghcr.io/tcort/markdown-link-check:stable -c 'markdown-link-check --config .markdown-link-check.json $$(find . -name \*.md | grep -v ^\./libbpf)'

.PHONY: jsonschema
jsonschema:
./scripts/jsonschema.sh
Expand Down

0 comments on commit 46eb08d

Please sign in to comment.