Skip to content

Commit

Permalink
Merge pull request #154 from hamstar/fix-markdownlint-glob
Browse files Browse the repository at this point in the history
Fix markdownlint execution in the CI pipeline
  • Loading branch information
Xymph authored Oct 4, 2023
2 parents c3ed652 + 4cd37b0 commit e6d3fda
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
name: "Pull Request Checks"
on: pull_request
jobs:
# Enforce the update of the changelog file
# 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 markdown files are formatted consistently
# Ensure that markdown files are formatted consistently (according to .markdownlint.yml)
lint-markdown-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: xt0rted/markdownlint-problem-matcher@v2
- run: npm install -g markdownlint-cli
- run: markdownlint **/*.md
- 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-cli
run: npm install -g markdownlint-cli
- name: List files that will be processed
run: npx --silent glob '**/*.md'
- name: Run markdownlint
run: markdownlint '**/*.md'
5 changes: 5 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ MD024:
MD026:
# Trailing punctuation characters not allowed in headings
punctuation: ",;:!"

# MD052/reference-links-images
MD052:
# Validate shortcut-style links
shortcut_syntax: true
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ and [Keep a Changelog](http://keepachangelog.com/).

- Clarified instructions in `GOVERNANCE.md` for releasing new versions ([#157])
- Updated versions of GitHub Actions dependencies ([#161])
- Fixed markdownlint execution in the CI pipeline ([#154])

<!-- Reference link URLs for this release section -->
[#154]: https://github.com/hamstar/Wikimate/pull/154
[#157]: https://github.com/hamstar/Wikimate/pull/157
[#161]: https://github.com/hamstar/Wikimate/pull/161

Expand Down

0 comments on commit e6d3fda

Please sign in to comment.