cirious_codex_result 0.2.0

Robust result and error handling framework for the Cirious Codex ecosystem.
name: CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  build_and_test:
    name: Build & Test
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

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

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

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

      - name: Run Clippy (Linter)
        run: cargo clippy --all-targets --all-features -- -D warnings

      - name: Check Documentation
        run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items

      - name: Build Project
        run: cargo build --verbose

      - name: Run Tests
        run: cargo test --verbose