From 0e15d3bd74edddad44ad0b6035932fa685a9e755 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 13 Sep 2026 23:09:37 +0200 Subject: [PATCH] fix(ci): add markdown linters --- .gitea/workflows/markdown-linters.yaml | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/markdown-linters.yaml diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml new file mode 100644 index 0000000..8458f27 --- /dev/null +++ b/.gitea/workflows/markdown-linters.yaml @@ -0,0 +1,44 @@ +name: Markdown linter + +on: + pull_request: + paths: [ "**/*.md" ] + types: [ "opened", "reopened", "synchronize" ] + push: + branches: + - '**' + paths: [ "**/*.md" ] + tags-ignore: + - '**' + workflow_dispatch: {} + +jobs: + markdown-link-checker: + container: + image: docker.io/library/node:26.8.2-alpine + runs-on: ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git npm + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + - name: Verify links in markdown files + run: | + npm install + npm run readme:link + + markdown-lint: + container: + image: docker.io/library/node:26.8.2-alpine + runs-on: ubuntu-latest + steps: + - name: Install tooling + run: | + apk update + apk add git + - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0 + - name: Lint markdown files + run: | + npm install + npm run readme:lint