validkit 1.1.0

Typed newtypes for validated domain primitives — email, URL, cron, tenant, locale, and more
Documentation
name: CI

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

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

permissions:
  contents: read

jobs:
  quality:
    uses: WyattAu/engineering-standards/.github/workflows/rust-kit.yml@main
    with:
      tier: a
      all-features: true
      loom: false
      wasm: false
      miri: true
      embedded: true

  # Repo-specific: no_std/wasm32 target gate (web validation types must
  # compile for browser/edge deployments).
  check-wasm32:
    name: Check (wasm32-unknown-unknown, --no-default-features)
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          targets: wasm32-unknown-unknown
      - uses: Swatinem/rust-cache@v2
        with:
          key: wasm32
      - name: Check compilation (wasm32)
        run: cargo check --target wasm32-unknown-unknown --no-default-features

  # Repo-specific: the hand-rolled validators behind
  # `#[cfg(not(feature = "regex"))]`, `not(feature = "url"))]`, and
  # `not(feature = "idna"))]` never execute under --all-features, so the
  # coverage job cannot see them. This job runs the gated fallback test
  # target (tests/fallback_paths.rs) against the reduced feature set.
  fallback-validators:
    name: Test (fallback validators, no-default-features + serde,std)
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
        with:
          key: fallback-validators
      - name: test (fallback engines, no regex/url/idna)
        run: cargo test --locked --no-default-features --features serde,std