This commit is contained in:
Rob Ede 2021-06-23 20:23:20 +01:00
parent 93dbb813d1
commit ebbfb0c418
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 23 additions and 16 deletions

View File

@ -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"

View File

@ -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'