Skip to content

Fix markdownlint execution in the CI pipeline #95

Fix markdownlint execution in the CI pipeline

Fix markdownlint execution in the CI pipeline #95

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-cli2
- name: Configure markdownlint-cli2
run: 'echo { "showFound": true } > .markdownlint-cli2.jsonc'
- name: Run markdownlint
run: markdownlint-cli2 '**/*.md'