From 346a2919ff75befe323b4f23d958272f3fc1b33d Mon Sep 17 00:00:00 2001 From: Yeachan-Heo Date: Thu, 2 Apr 2026 07:40:01 +0000 Subject: [PATCH] ci: add rust github actions workflow --- .github/workflows/rust-ci.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/rust-ci.yml diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml new file mode 100644 index 0000000..ab4033d --- /dev/null +++ b/.github/workflows/rust-ci.yml @@ -0,0 +1,38 @@ +name: rust-ci + +on: + push: + branches: + - main + - 'gaebal/**' + - 'omx-issue-*' + pull_request: + +jobs: + rust-ci: + runs-on: ubuntu-latest + defaults: + run: + working-directory: rust + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Cache cargo + uses: Swatinem/rust-cache@v2 + with: + workspaces: rust + + - name: cargo fmt + run: cargo fmt --all --check + + - name: cargo clippy + run: cargo clippy -p rusty-claude-cli --bin claw --no-deps -- -D warnings + + - name: cargo test + run: cargo test -p rusty-claude-cli