Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
95 changes: 47 additions & 48 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,55 @@ env:
RUSTFLAGS: -D warnings

jobs:

ci:
name: Build and test
runs-on: ubuntu-latest

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

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo

- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
rustflags:

- name: Install Nextest test runner
uses: taiki-e/install-action@nextest

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

- name: Build Project
run: cargo build --workspace --all-features

- name: Run Tests
run: cargo nextest run --workspace --all-targets --all-features --no-fail-fast || echo "No tests found, skipping..."
- name: Lints checks
run: |
cargo clippy --workspace --all-targets --all-features -- -D warnings

- name: Check API documentation
run: cargo doc --workspace --all-features --no-deps

- name: Install cargo-audit
run: cargo install cargo-audit

- name: Run Security Audit
run: cargo audit
- name: Checkout code
uses: actions/checkout@v4

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/bin
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo

- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
rustflags:

- name: Install Nextest test runner
uses: taiki-e/install-action@nextest

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

- name: Build Project
run: cargo build --workspace --all-features

- name: Run Tests
run: cargo nextest run --workspace --all-targets --all-features --no-fail-fast || echo "No tests found, skipping..."

- name: Lints checks
run: |
cargo clippy --workspace --all-targets --all-features -- -D warnings

- name: Check API documentation
run: cargo doc --workspace --all-features --no-deps

- name: Install cargo-audit
run: cargo install cargo-audit

- name: Run Security Audit
run: cargo audit
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/target
/target/
**/*.rs.bk
Cargo.lock

167 changes: 167 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ tokio = { version = "1.0", features = ["sync"] }
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
anyhow = "1.0.97"
clap = { version = "4.4", features = ["derive"] }
uuid = { version = "1.7", features = ["v4"] }
Loading
Loading