exercises: minor edits #29
This file contains hidden or 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: Spellcheck and markdown lint | |
| # Checks the markdown course material on every pull request, and on every push | |
| # to "main". | |
| # | |
| # The checks can be run locally with: | |
| # * npx markdownlint-cli2 "**/*.md" | |
| # * npx cspell "**/*.md" | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| # Cancel a running check when new commits are pushed to the same branch. | |
| concurrency: | |
| group: lint-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Spellcheck and markdown lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| - name: Run cspell | |
| run: npx --yes cspell --no-progress "**/*.md" | |
| - name: Run markdownlint | |
| run: npx --yes markdownlint-cli2 "**/*.md" |