Markdown Lint #25
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: Markdown Lint | |
| on: | |
| push: | |
| paths: | |
| - '**/*.md' | |
| - '.markdownlint.json' | |
| - '.markdownlintignore' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| pull_request: | |
| paths: | |
| - '**/*.md' | |
| - '.markdownlint.json' | |
| - '.markdownlintignore' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| schedule: | |
| # Run weekly on Sundays at 3 AM UTC | |
| - cron: '0 3 * * 0' | |
| jobs: | |
| lint-markdown: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18, 20] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint markdown files | |
| run: npm run lint:markdown | |
| - name: Upload lint results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: markdown-lint-results-${{ matrix.node-version }} | |
| path: | | |
| markdown-lint-results/ | |
| *.log | |
| retention-days: 7 |