projectdetect 0.1.0

Detect what kind of project a directory is (Go, Node, Rust, Xcode, …) by canonical indicator files, with recursive discovery, file→project resolution, and custom YAML/CEL types.
Documentation
name: CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: Build & Test (${{ matrix.os }}, Rust ${{ matrix.rust }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        include:
          # Core MSRV 1.85 (ignore/globset/indexmap need edition2024). The
          # optional `cel` feature requires rustc 1.86, so all-features runs
          # on stable, not on the floor.
          - { os: ubuntu-latest, rust: "1.85", all_features: false }
          # Cross-platform coverage on stable, with the cel feature on.
          - { os: ubuntu-latest, rust: stable, all_features: true }
          - { os: macos-latest, rust: stable, all_features: true }
          - { os: windows-latest, rust: stable, all_features: true }
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{ matrix.rust }}
      - uses: Swatinem/rust-cache@v2
      - name: Build
        run: cargo build --locked
      - name: Test (default features)
        run: cargo test --locked
      - name: Build (all features)
        if: matrix.all_features
        run: cargo build --all-features --locked
      - name: Test (all features)
        if: matrix.all_features
        run: cargo test --all-features --locked

  lint:
    name: Lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy, rustfmt
      - uses: Swatinem/rust-cache@v2
      - name: rustfmt
        run: cargo fmt --check
      - name: clippy
        run: cargo clippy --all-features --all-targets --locked -- -D warnings