diff --git a/.cargo/config.toml b/.cargo/config.toml index 0cf09f710..11ed76f02 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,6 +3,6 @@ chk = "check --workspace --all-features --tests --examples --bins" lint = "clippy --workspace --tests --examples" ci-min = "hack check --workspace --no-default-features" ci-min-test = "hack check --workspace --no-default-features --tests --examples" -ci-default = "hack check --workspace" -ci-full = "check --workspace --bins --examples --tests" -ci-test = "test --workspace --all-features --no-fail-fast" +ci-full = "check --workspace --all-features --bins --examples --tests" +ci-test = "test --workspace --all-features --lib --tests --no-fail-fast -- --nocapture" +ci-doctest = "test --workspace --all-features --doc --no-fail-fast -- --nocapture" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f632eae1..c278d8b8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,35 +66,25 @@ jobs: - name: check minimal uses: actions-rs/cargo@v1 - with: - command: hack - args: check --workspace --no-default-features + with: { command: ci-min } - name: check minimal + tests uses: actions-rs/cargo@v1 - with: - command: hack - args: check --workspace --no-default-features --tests --examples + with: { command: ci-min-test } - name: check full uses: actions-rs/cargo@v1 - with: - command: check - args: --workspace --all-features --bins --examples --tests + with: { command: ci-full } - name: tests uses: actions-rs/cargo@v1 timeout-minutes: 40 - with: - command: test - args: --workspace --all-features --no-fail-fast --lib --tests -- --nocapture + with: { command: ci-test } - name: doc tests uses: actions-rs/cargo@v1 timeout-minutes: 40 - with: - command: test - args: --workspace --all-features --no-fail-fast --doc -- --nocapture + with: { command: ci-doctest } - name: Generate coverage file if: >