ci: Add missing .github community files and shared workflows #1
Workflow file for this run
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
| # workflows/lint-markdown.yml | |
| # | |
| # Lint Markdown | |
| # Lint Markdown files using markdownlint and Prettier. | |
| name: Lint Markdown | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| paths: | |
| - "**/*.md" | |
| - "**/*.mdx" | |
| - ".github/workflows/lint-markdown.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: lint-markdown-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-markdown: | |
| name: Lint Markdown Files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Git Repository | |
| uses: actions/checkout@v6 | |
| - name: Set up NodeJS Environment | |
| uses: actions/setup-node@v6 | |
| - name: Install Prettier and markdownlint | |
| run: npm install -g prettier markdownlint-cli | |
| - name: Run Markdown Lint | |
| run: markdownlint "**/*.md" | |
| - name: Run Prettier | |
| run: prettier --check "{**/*.md,**/*.mdx}" |