diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b64f1cdc8..5f98404be 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -14,7 +14,18 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Cache Dependencies uses: Swatinem/rust-cache@v2 - - name: Build all Packages and Features - run: cargo check --all-features --locked + - name: Check Fetcher + run: cargo check --package crd-v1-fetcher --locked + env: + RUSTFLAGS: "-A warnings" + - name: Check all CRDs + run: | + for mld in ./kube-custom-resources-rs/src/*; do + if [ -f "${mld}/mod.rs" ]; then + module=$(basename "${mld}") + echo "testing ${module}" + cargo check --package kube-custom-resources-rs --features "${module}" --locked + fi + done env: RUSTFLAGS: "-A warnings"