-
-
Notifications
You must be signed in to change notification settings - Fork 66
51 lines (41 loc) · 1.04 KB
/
check-zh.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CHECK-CHINESE-TEXT
env:
NODE_OPTIONS: --max-old-space-size=6144
on:
push:
branches: [main]
paths:
- '**/zh/**/*.md'
pull_request:
branches: [main]
types: [opened]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version:
- 20
steps:
- name: Checkout
uses: actions/checkout@v3
with:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth: 0
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js (${{ matrix.node_version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Linter zh markdown
run: pnpm run lint:zh