From 3a8358b1ee4503999151d21948906085655ad02b Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Sat, 13 Mar 2021 12:27:41 +0100 Subject: [PATCH] Sync CI configuration from serde_with --- .github/workflows/ci.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 954f16a..86a021d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,19 +36,19 @@ jobs: name: clippy "No Default Features" (${{ matrix.os }} / ${{ matrix.rust }}) with: token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace --no-default-features -- -D warnings + args: --workspace --no-default-features --all-targets -- -D warnings name: clippy "No Default Features" (${{ matrix.os }} / ${{ matrix.rust }}) - uses: actions-rs/clippy-check@v1 name: clippy "Default" (${{ matrix.os }} / ${{ matrix.rust }}) with: token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace -- -D warnings + args: --workspace --all-targets -- -D warnings name: clippy "Default" (${{ matrix.os }} / ${{ matrix.rust }}) - uses: actions-rs/clippy-check@v1 name: clippy "All Features" (${{ matrix.os }} / ${{ matrix.rust }}) with: token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace --all-features -- -D warnings + args: --workspace --all-features --all-targets -- -D warnings name: clippy "All Features" (${{ matrix.os }} / ${{ matrix.rust }}) rustfmt: @@ -90,22 +90,25 @@ jobs: name: Build (${{ matrix.os }} / ${{ matrix.rust }}) with: command: build - args: --all --all-features + args: --workspace --all-features --all-targets - uses: actions-rs/cargo@v1 name: Test "No Default Features" (${{ matrix.os }} / ${{ matrix.rust }}) with: command: test - args: --all --no-default-features + # cargo test --all-targets does NOT run doctests + # since doctests are important this should not be added + # https://github.com/rust-lang/cargo/issues/6669 + args: --workspace --no-default-features - uses: actions-rs/cargo@v1 name: Test "Default" (${{ matrix.os }} / ${{ matrix.rust }}) with: command: test - args: --all + args: --workspace - uses: actions-rs/cargo@v1 name: Test "All Features" (${{ matrix.os }} / ${{ matrix.rust }}) with: command: test - args: --all --all-features + args: --workspace --all-features # Added to summarize the matrix (otherwise we would need to list every single # job in bors.toml)