Skip to content

Fix markdownlint execution in the CI pipeline #98

Fix markdownlint execution in the CI pipeline

Fix markdownlint execution in the CI pipeline #98

name: "Pull Request Checks"
on: pull_request
jobs:
# Ensure that the changelog file has been updated in this PR
check-changelog-change:
runs-on: ubuntu-latest
steps:
- uses: dangoslen/changelog-enforcer@v3
# Ensure that markdown files are formatted consistently (according to .markdownlint.yml)
lint-markdown-files:
runs-on: ubuntu-latest
steps:
- name: Fetch the Wikimate code into the Actions runner
uses: actions/checkout@v3
- name: Install the markdownlint-problem-matcher action
uses: xt0rted/markdownlint-problem-matcher@v2
- name: Install markdownlint-cli2
run: npm install -g markdownlint-cli@^0.37
- name: List files that will be processed
run: npx --silent glob '**/*.md'
- name: Run markdownlint
run: markdownlint '**/*.md'