Add markdown formatting and link checking workflow
This commit is contained in:
parent
cd6577188a
commit
cad3428d11
1 changed files with 33 additions and 0 deletions
33
.github/workflows/markdown-format.yml
vendored
Normal file
33
.github/workflows/markdown-format.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Markdown Format Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '**/*.md'
|
||||
- '**/*.mdx'
|
||||
pull_request:
|
||||
paths:
|
||||
- '**/*.md'
|
||||
- '**/*.mdx'
|
||||
|
||||
jobs:
|
||||
format:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Check markdown formatting
|
||||
run: npm run check:docs:format
|
||||
|
||||
- name: Check markdown links
|
||||
run: npm run check:docs:links
|
||||
Loading…
Reference in a new issue