Skip to content

fix(workflows): standardize grep syntax for Mermaid diagram validatio… #21

fix(workflows): standardize grep syntax for Mermaid diagram validatio…

fix(workflows): standardize grep syntax for Mermaid diagram validatio… #21

Workflow file for this run

name: Markdown Linting
on:
push:
branches: [ main, master ]
paths:
- '**/*.md'
- '.github/workflows/*.yml'
pull_request:
branches: [ main, master ]
paths:
- '**/*.md'
- '.github/workflows/*.yml'
jobs:
markdown-lint:
name: Markdown Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run markdownlint
run: |
npx markdownlint "**/*.md" \
--ignore node_modules \
--ignore .git \
--ignore docs/global.md \
--config .markdownlint.json || true
- name: Check for broken links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: '.github/workflows/markdown-link-check.json'