Add CI workflow (#1)

* Add CI workflow

* Fix formatting
This commit is contained in:
David Beesley
2026-01-18 06:11:51 +13:00
committed by GitHub
parent e9f2b03684
commit 76b65add1d
4 changed files with 71 additions and 5 deletions

49
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,49 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --all-targets
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-targets

10
CONTRIBUTING.md Normal file
View File

@@ -0,0 +1,10 @@
# Contributing
Contributions welcome! Feel free to open issues or pull requests.
## Branch naming
- `feature/description`
- `fix/description`
CI runs fmt, clippy, and tests on pull requests.

View File

@@ -1,5 +1,12 @@
# claude-chill # claude-chill
[![CI](https://github.com/davidbeesley/claude-chill/actions/workflows/ci.yml/badge.svg)](https://github.com/davidbeesley/claude-chill/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/davidbeesley/claude-chill)](https://github.com/davidbeesley/claude-chill/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/davidbeesley/claude-chill)](https://github.com/davidbeesley/claude-chill/network)
![GitHub repo size](https://img.shields.io/github/repo-size/davidbeesley/claude-chill)
![Rust](https://img.shields.io/badge/rust-2024-orange)
A PTY proxy that tames Claude Code's massive terminal updates. A PTY proxy that tames Claude Code's massive terminal updates.
## The Problem ## The Problem
@@ -76,6 +83,10 @@ Keys: `[a]`-`[z]`, `[f1]`-`[f12]`, `[pageup]`, `[pagedown]`, `[home]`, `[end]`,
This tool was developed for personal convenience on Debian Linux. It works for me, but it hasn't been extensively tested across different terminals, operating systems, or edge cases. Don't use it to send anyone to space, perform surgery, or run critical infrastructure. If it breaks, you get to keep both pieces. This tool was developed for personal convenience on Debian Linux. It works for me, but it hasn't been extensively tested across different terminals, operating systems, or edge cases. Don't use it to send anyone to space, perform surgery, or run critical infrastructure. If it breaks, you get to keep both pieces.
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md).
## License ## License
MIT MIT

View File

@@ -23,11 +23,7 @@ use clap::Parser;
Keys: [a]-[z], [f1]-[f12], [pageup], [enter], [space], etc." Keys: [a]-[z], [f1]-[f12], [pageup], [enter], [space], etc."
)] )]
pub struct Cli { pub struct Cli {
#[arg( #[arg(help = "Command to run", required = true, value_name = "COMMAND")]
help = "Command to run",
required = true,
value_name = "COMMAND"
)]
pub command: String, pub command: String,
#[arg( #[arg(