Skip to content

fix(feishu): read chat_id from /context/open_chat_id on card.action.t… #11

fix(feishu): read chat_id from /context/open_chat_id on card.action.t…

fix(feishu): read chat_id from /context/open_chat_id on card.action.t… #11

Workflow file for this run

name: CI
on:
push:
branches: [main, feat/initial-design]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --workspace --all-targets -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
# fake-claude 是多个集成测试的被测进程,必须先于测试构建。
- run: cargo build --bin fake-claude
- run: cargo test --workspace
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Run tests under llvm-cov
run: cargo llvm-cov --workspace --json --summary-only --output-path coverage.json
- name: Enforce coverage gates (spec §4.3)
run: ./scripts/check_coverage.sh coverage.json