ncheap 0.8.0

Namecheap registrar API CLI built for terminal and AI-agent operability
Documentation
name: CI

on:
  push:
    branches: [main]
  pull_request:
  schedule:
    # Weekly advisory sweep so a dormant repo still learns of new RustSec
    # advisories via the deny job.
    - cron: "0 6 * * 1"

env:
  CARGO_TERM_COLOR: always

# Actions are SHA-pinned (tag in comment): a repointed tag is a supply-chain
# vector cargo-deny cannot see.
jobs:
  test:
    # Run on both shipped OS families: macOS has different dirs() paths and
    # filesystem semantics, and Darwin binaries are released, so the suite
    # must pass there too — not just on the Linux CI default.
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
    steps:
      - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
      - uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
        with:
          toolchain: stable
          components: clippy, rustfmt
      - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
      # fmt is byte-identical across platforms; check it once.
      - run: cargo fmt --check
        if: matrix.os == 'ubuntu-latest'
      - run: cargo clippy --all-targets -- -D warnings
      - run: cargo test

  msrv:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
      - uses: dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
        with:
          toolchain: "1.89"
      - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
      - run: cargo check --all-targets

  deny:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
      - uses: EmbarkStudios/cargo-deny-action@bb137d7af7e4fb67e5f82a49c4fce4fad40782fe # v2.0.20