name: markdown-linting

on:

  push:
    branches: 
      - '**'
  pull_request:
    branches: 
      - '**'

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      
      - name: Markdown Linter
        uses: DavidAnson/markdownlint-cli2-action@v15
        with:
          config: .github/workflows/.markdownlint.json
          globs: '**/*.md'
