| 12345678910111213141516171819202122232425262728293031323334 |
- # .github/workflows/ci.yml
- # 持续集成工作流:用于代码风格检查和链接检查
- name: CI
- on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
- jobs:
- markdown-lint:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout code
- uses: actions/checkout@v3
- - name: Setup Node.js
- uses: actions/setup-node@v3
- with:
- node-version: '16'
- - name: Install markdownlint-cli
- run: npm install -g markdownlint-cli
- - name: Run markdownlint
- run: markdownlint --config .github/lint_config.json '**/*.md'
- link-checker:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - name: Link Checker
- uses: lycheeverse/lychee-action@v1.5.0
- with:
- args: --verbose --no-progress './**/*.md'
|