chore: Configure repository for ParadeDB #4
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
# workflows/lint-markdown.yml | |
# | |
# Lint Markdown | |
# Lint Markdown files using 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 | |
if: github.event.pull_request.draft == false | |
steps: | |
- name: Checkout Git Repository | |
uses: actions/checkout@v4 | |
- name: Set up NodeJS Environment | |
uses: actions/setup-node@v4 | |
- name: Install Prettier | |
run: npm install -g prettier markdownlint-cli | |
- name: Run Markdown Lint | |
run: markdownlint '**/*.md' | |
- name: Run Pettier | |
run: prettier --check '{**/*.md,**/*.mdx}' |