Add blog post on markdownlint #273
Workflow file for this run
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-24.04 | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
# https://github.com/actions/setup-node | |
- uses: actions/setup-node@v4 | |
- name: Install CLI for markdownlint | |
run: npm install markdownlint-cli2@0.14.0 --global # Pinned to the same version in shell.nix | |
- name: Lint Markdown files, while excluding anything under the node_modules directories (which is generated by `npm install` above) | |
run: markdownlint-cli2 "**/*.md" "#node_modules" | |
# TODO: zola must be installed for this to work | |
# - name: Check if the project builds and for broken links | |
# run: zola check |