Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]

env:
CARGO_TERM_COLOR: always

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2

- name: Check formatting
run: cargo fmt --all -- --check

- name: Lint with Clippy
run: cargo clippy --all-targets --all-features -- -D warnings

- name: Run Unit and Integration tests
run: cargo test --all
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,12 @@ refactor(object): eliminate intermediate heap allocations in create_object

Replaced format!().as_bytes() + extend_from_slice patterns with the write! macro.
```

## Continuous Integration (CI)

All Pull Requests are automatically tested against our GitHub Actions pipeline. To ensure your PR is green, run the following locally before pushing:

```bash
cargo fmt --all
cargo clippy --all-targets --all-features -- -D warnings
cargo test --all
165 changes: 165 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ thiserror = "2.0.18"
anyhow = "1.0"
serde = {version = "1.0", features = ["derive"]}
toml = "1.1.2+spec-1.1.0"
clap = { version = "4.5", features = ["derive"] }
clap = { version = "4.5", features = ["derive"] }
tempfile = "3.10"
assert_cmd = "2.0"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<img src="https://img.shields.io/badge/License-MIT-royalblue" alt="License" />
</p>

[![CI](https://github.com/<fadyphil>/git-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/<fadyphil>/git-rs/actions/workflows/ci.yml)

[Overview](#overview) • [Architecture](#architecture) • [Quick Start](#quick-start) • [Roadmap](#roadmap)

</div>
Expand Down
Loading
Loading