rust-ci.yml 763 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: rust-ci
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - 'gaebal/**'
  7. - 'omx-issue-*'
  8. pull_request:
  9. jobs:
  10. rust-ci:
  11. runs-on: ubuntu-latest
  12. defaults:
  13. run:
  14. working-directory: rust
  15. steps:
  16. - name: Checkout
  17. uses: actions/checkout@v4
  18. - name: Install Rust toolchain
  19. uses: dtolnay/rust-toolchain@stable
  20. with:
  21. components: rustfmt, clippy
  22. - name: Cache cargo
  23. uses: Swatinem/rust-cache@v2
  24. with:
  25. workspaces: rust
  26. - name: cargo fmt
  27. run: cargo fmt --all --check
  28. - name: cargo clippy
  29. run: cargo clippy -p rusty-claude-cli --bin claw --no-deps -- -D warnings
  30. - name: cargo test
  31. run: cargo test -p rusty-claude-cli