diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 1fbcbf27a..44a368853 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -25,8 +25,9 @@ jobs: cargo doc --no-deps --workspace - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} RUSTDOCFLAGS: -Z unstable-options --enable-index-page --cfg docsrs - name: Move latest rustdocs into book diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be5eabf5c..39c136e00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,10 +51,13 @@ jobs: target/ key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} - name: Run tests + shell: bash run: > cargo test --workspace - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean run: git diff --exit-code @@ -110,10 +113,13 @@ jobs: target/ key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} - name: Run tests + shell: bash run: > cargo test --workspace - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean run: git diff --exit-code @@ -161,12 +167,15 @@ jobs: target/ key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} - name: Run slow tests + shell: bash run: > cargo test --workspace - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --features expensive-tests -- --ignored + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean run: git diff --exit-code @@ -216,12 +225,15 @@ jobs: target/ key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.lock') }} - name: Run check + shell: bash run: > cargo check --release --workspace --tests - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean run: git diff --exit-code @@ -255,12 +267,15 @@ jobs: - name: Remove lockfile to build with latest dependencies run: rm Cargo.lock - name: Build crates + shell: bash run: > cargo build --workspace --all-targets - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --verbose + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean (excluding lockfile) run: git diff --exit-code ':!Cargo.lock' @@ -369,10 +384,12 @@ jobs: name: Clippy (MSRV) token: ${{ secrets.GITHUB_TOKEN }} args: > - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --all-targets -- -D warnings + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} clippy-beta: name: Clippy (beta) @@ -396,10 +413,12 @@ jobs: name: Clippy (beta) token: ${{ secrets.GITHUB_TOKEN }} args: > - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --all-targets -- -W clippy::all + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} codecov: name: Code coverage @@ -427,10 +446,12 @@ jobs: run: > cargo tarpaulin --engine llvm - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --release --timeout 600 --out xml + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v5.1.2 with: @@ -451,8 +472,10 @@ jobs: run: > cargo doc --all - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} --document-private-items + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} fmt: name: Rustfmt @@ -484,7 +507,9 @@ jobs: run: > cargo check --workspace - ${{ steps.prepare.outputs.feature-flags }} + ${FEATURE_FLAGS} + env: + FEATURE_FLAGS: ${{ steps.prepare.outputs.feature-flags }} - name: Verify working directory is clean run: git diff --exit-code