diff --git a/.cargo/config.toml b/.cargo/config.toml index ebc88dc31..72f445d8a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,6 +3,7 @@ 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-full = "check --workspace --all-features --bins --examples --tests" +ci-default = "check --workspace --bins --tests --examples" +ci-full = "check --workspace --all-features --bins --tests --examples" ci-test = "test --workspace --all-features --lib --tests --no-fail-fast -- --nocapture" ci-doctest = "hack test --workspace --all-features --doc --no-fail-fast -- --nocapture" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 03ef33f58..be595e35c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,22 +64,21 @@ jobs: command: install args: cargo-hack - # - name: check minimal - # uses: actions-rs/cargo@v1 - # with: { command: ci-min } - - # - name: check minimal + tests - # uses: actions-rs/cargo@v1 - # with: { command: ci-min-test } - - # - name: check full - # uses: actions-rs/cargo@v1 - # with: { command: ci-full } - - - name: doc tests + - name: check minimal uses: actions-rs/cargo@v1 - timeout-minutes: 40 - with: { command: ci-doctest } + with: { command: ci-min } + + - name: check minimal + tests + uses: actions-rs/cargo@v1 + with: { command: ci-min-test } + + - name: check default + uses: actions-rs/cargo@v1 + with: { command: ci-default } + + - name: check full + uses: actions-rs/cargo@v1 + with: { command: ci-full } - name: tests uses: actions-rs/cargo@v1 @@ -88,6 +87,13 @@ jobs: command: ci-test args: --skip=test_reading_deflate_encoding_large_random_rustls + - name: doc tests + # due to unknown issue with running doc tests on macOS + if: matrix.target.os == 'ubuntu-latest' + uses: actions-rs/cargo@v1 + timeout-minutes: 40 + with: { command: ci-doctest } + - name: Generate coverage file if: > matrix.target.os == 'ubuntu-latest'