composition-cli 2.1.1

composition is a modular lines-of-code CLI tool to analyze and display code composition in directories
name: Verify Default Config Build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  default-config-check:
    name: Ensure Default Config Builds Successfully
    runs-on: ubuntu-latest

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

      - name: Install Rust (stable)
        uses: actions-rs/toolchain@v1
        with:
          toolchain: stable
          override: true

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

      - name: Run default config tests
        run: cargo test default_config --verbose -- --nocapture