添加markdownlint到ci (#289)

* Update wiki-deploy.yml

* Update test.yml
This commit is contained in:
SB-Reborn 2024-10-01 12:55:02 +08:00 committed by GitHub
parent f1c9ce1db7
commit 00478ca58a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 4 deletions

View File

@ -14,10 +14,20 @@ jobs:
fetch-depth: 0
- name: "setup pnpm"
uses: "pnpm/action-setup@v4"
- name: "setup node"
- name: "setup node"
uses: "actions/setup-node@v4"
with:
node-version: 20
- name: Install and Build
run: pnpm install && pnpm run --parallel build
- name: "Install"
run: "pnpm install"
- name: "MarkdownLint Check"
uses: DavidAnson/markdownlint-cli2-action@v17
with:
fix: true
globs: 'docs*/**/*.md'
- name: "Build"
run: "pnpm run --parallel build"

View File

@ -29,17 +29,30 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "setup pnpm"
uses: "pnpm/action-setup@v4"
- name: "setup node"
uses: "actions/setup-node@v4"
with:
node-version: 20
# 安装 Npm 并构建
# 安装 npm 包
- name: Install
run: pnpm install
# MarkdownLint 检查
- name: "MarkdownLint Check"
uses: "DavidAnson/markdownlint-cli2-action@v17"
with:
fix: true
globs: 'docs*/**/*.md'
# 构建
- name: Build
run: pnpm run --parallel build
# 部署
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4