File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : check-cli-rs
2+
3+ # Checks packages/cli-rs, the Rust client, which check-test.yml leaves out. Its tests compare it with the TypeScript
4+ # packages listed below, so a change there runs it too.
5+ on :
6+ pull_request :
7+ paths : &paths
8+ - packages/cli-rs/**
9+ - packages/cli/src/**
10+ - packages/client/**
11+ - packages/plugin/**
12+ - packages/protocol/**
13+ - packages/schema/**
14+ - packages/theme/**
15+ - packages/tui/**
16+ - packages/util/**
17+ - bun.lock
18+ - .github/workflows/check-cli-rs.yml
19+ push :
20+ branches : [dev]
21+ paths : *paths
22+ workflow_dispatch :
23+
24+ permissions :
25+ contents : read
26+
27+ concurrency :
28+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
29+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
30+
31+ jobs :
32+ check :
33+ runs-on : blacksmith-4vcpu-ubuntu-2404
34+ timeout-minutes : 45
35+ defaults :
36+ run :
37+ working-directory : packages/cli-rs
38+ steps :
39+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
40+ # Bun and node_modules: the tests run the TypeScript side they compare against.
41+ - uses : ./.github/actions/setup-bun
42+ # rustup reads rust-toolchain.toml; `bun run cargo` first fetches OpenTUI's native library from its release.
43+ - run : rustup toolchain install
44+ - run : bun run cargo fmt --check
45+ - run : bun run cargo clippy --locked --workspace --all-targets -- -D warnings
46+ - run : bun run cargo test --locked --workspace
You can’t perform that action at this time.
0 commit comments