mirror of
https://github.com/postyizhan/NitWikit.git
synced 2024-11-21 03:13:36 +08:00
34 lines
644 B
YAML
34 lines
644 B
YAML
name: Test
|
|
|
|
on:
|
|
[pull_request,push]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# 拉取代码
|
|
- name: Checkout
|
|
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
|
|
|
|
- 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 build"
|