From 97601e246bed18f2b5846a4450880adbe33f792c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= <44257381+JSorngard@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:47:43 +0100 Subject: [PATCH 1/3] Add a cargo all features job to CI --- .github/workflows/rust.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 89b9b6f..2769e6c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: test - run: cargo test --all-features --verbose + run: cargo install cargo-all-features && cargo test-all-features --verbose doc: runs-on: ubuntu-latest From bf510d72e7b1d76f94a46f109137a845f5e6c206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= <44257381+JSorngard@users.noreply.github.com> Date: Fri, 29 Nov 2024 16:56:29 +0100 Subject: [PATCH 2/3] Add a check of all feature combinations --- .github/workflows/rust.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2769e6c..56132bc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,8 +25,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: check - run: cargo check --all-features --verbose - + run: cargo install cargo-all-features && cargo check-all-features clippy: runs-on: ubuntu-latest steps: @@ -41,7 +40,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: test - run: cargo install cargo-all-features && cargo test-all-features --verbose + run: cargo install cargo-all-features && cargo test-all-features doc: runs-on: ubuntu-latest From 3b59db127a8a2a1098e61c821ed195faeeac4ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johanna=20S=C3=B6rng=C3=A5rd?= <44257381+JSorngard@users.noreply.github.com> Date: Fri, 29 Nov 2024 17:04:23 +0100 Subject: [PATCH 3/3] Make a separate all-features job --- .github/workflows/rust.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 56132bc..ea03638 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,7 +25,8 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: check - run: cargo install cargo-all-features && cargo check-all-features + run: cargo check --all-features --verbose + clippy: runs-on: ubuntu-latest steps: @@ -40,7 +41,15 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - name: test - run: cargo install cargo-all-features && cargo test-all-features + run: cargo test --all-features --verbose + + cargo-all-features: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: test-all-features + run: cargo install cargo-all-features && cargo check-all-features && cargo test-all-features doc: runs-on: ubuntu-latest