Skip to content

Markdown Lint

Markdown Lint #26

Workflow file for this run

name: Markdown Lint
on:
push:
paths:
- '**/*.md'
- '.markdownlint.json'
- '.markdownlintignore'
- 'package.json'
- 'package-lock.json'
pull_request:
paths:
- '**/*.md'
- '.markdownlint.json'
- '.markdownlintignore'
- 'package.json'
- 'package-lock.json'
schedule:
# Run weekly on Sundays at 3 AM UTC
- cron: '0 3 * * 0'
jobs:
lint-markdown:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint markdown files
run: npm run lint:markdown
- name: Upload lint results
uses: actions/upload-artifact@v4
if: always()
with:
name: markdown-lint-results-${{ matrix.node-version }}
path: |
markdown-lint-results/
*.log
retention-days: 7