name: Markdownlint
permissions:
  contents: read

on: [ push, pull_request ]

jobs:
  markdownlint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: DavidAnson/markdownlint-cli2-action@v24
        with:
          config: '.markdownlint.yaml'
          globs: |
            **/*.md
            !docs/breaking-changes.md
            !docs/index.md
            !docs/license.md