Skip to content

Merge pull request #12 from yriveiro/markdown-lint #1

Merge pull request #12 from yriveiro/markdown-lint

Merge pull request #12 from yriveiro/markdown-lint #1

Workflow file for this run

name: Markdownlint
on:
push:
branches:
- main
paths:
- "**/*.md"
- "**/*.mdx"
- ".markdownlint-cli2.jsonc"
- ".github/workflows/markdownlint.yml"
- ".github/workflows/markdownlint-problem-matcher.json"
pull_request:
paths:
- "**/*.md"
- "**/*.mdx"
- ".markdownlint-cli2.jsonc"
- ".github/workflows/markdownlint.yml"
- ".github/workflows/markdownlint-problem-matcher.json"
jobs:
lint:
runs-on: ubuntu-latest
permissions:
statuses: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Run Markdownlint
run: |
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
npm i -g markdownlint-cli2
markdownlint-cli2 "**/*.{md,mdx,markdown}"