Merge pull request #29 from dmarcoux/update-info #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
# Run this workflow when a commit is pushed to `main` | |
push: | |
branches: | |
- main | |
# Run this workflow on any PR targeting `main` | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true # to include themes | |
# https://github.com/actions/setup-node | |
- uses: actions/setup-node@v4 | |
- name: Install CLI for markdownlint | |
run: npm install markdownlint-cli2 --global | |
- name: Lint Markdown files, while excluding anything under the themes and node_modules directories | |
run: markdownlint-cli2 "**/*.md" "#themes" "#node_modules" |