2025-01-11 11:36:09 +00:00
|
|
|
name: Markdown linter
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths: [ "**/*.md" ]
|
|
|
|
types: [ "opened", "reopened", "synchronize" ]
|
|
|
|
push:
|
|
|
|
paths: [ "**/*.md" ]
|
|
|
|
tags-ignore:
|
|
|
|
- '**'
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
markdown-link-checker:
|
|
|
|
container:
|
2025-01-12 23:39:18 +00:00
|
|
|
image: docker.io/library/node:22.13.0-alpine
|
2025-01-11 11:36:09 +00:00
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install tooling
|
|
|
|
run: |
|
|
|
|
apk update
|
2025-01-12 15:55:02 +00:00
|
|
|
apk add git npm
|
2025-01-11 11:36:09 +00:00
|
|
|
- uses: actions/checkout@v4.2.2
|
|
|
|
- name: Verify links in markdown files
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run readme:link
|
|
|
|
|
|
|
|
markdown-lint:
|
|
|
|
container:
|
2025-01-12 23:39:18 +00:00
|
|
|
image: docker.io/library/node:22.13.0-alpine
|
2025-01-11 11:36:09 +00:00
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install tooling
|
|
|
|
run: |
|
|
|
|
apk update
|
|
|
|
apk add git
|
|
|
|
- uses: actions/checkout@v4.2.2
|
|
|
|
- name: Lint markdown files
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
npm run readme:lint
|