更新lint与zhlint配置文件 #18
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
name: lint markdown | |
on: [push, pull_request] | |
jobs: | |
lint-markdown: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set node version | |
uses: actions/setup-node@v4 | |
- name: Install lint-md | |
run: npm install @lint-md/cli -g | |
- name: Install zhlint | |
run: npm install zhlint -g | |
- name: Lint markdown | |
run: lint-md 'README.md' --config=.lintmdrc --threads | |
# - name: Lint zh_CN | |
# run: zhlint 'README.md' --config=.zhlintrc |