mirror of
https://github.com/tradecatlabs/vibe-coding-cn.git
synced 2026-07-30 12:17:44 +00:00
35 lines
1021 B
YAML
35 lines
1021 B
YAML
# .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 --ignore .history --ignore tools/external --ignore scripts/backups/gz '**/*.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 --exclude-path .history --exclude-path .github/wiki --exclude-path tools/external --exclude-path tools/chat-vault --exclude-path scripts/backups/gz './**/*.md'
|