update cargo ci aliases

This commit is contained in:
Rob Ede 2021-06-23 18:38:13 +01:00
parent de04823166
commit 83e53f3311
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 8 additions and 18 deletions

View File

@ -3,6 +3,6 @@ chk = "check --workspace --all-features --tests --examples --bins"
lint = "clippy --workspace --tests --examples" lint = "clippy --workspace --tests --examples"
ci-min = "hack check --workspace --no-default-features" ci-min = "hack check --workspace --no-default-features"
ci-min-test = "hack check --workspace --no-default-features --tests --examples" ci-min-test = "hack check --workspace --no-default-features --tests --examples"
ci-default = "hack check --workspace" ci-full = "check --workspace --all-features --bins --examples --tests"
ci-full = "check --workspace --bins --examples --tests" ci-test = "test --workspace --all-features --lib --tests --no-fail-fast -- --nocapture"
ci-test = "test --workspace --all-features --no-fail-fast" ci-doctest = "test --workspace --all-features --doc --no-fail-fast -- --nocapture"

View File

@ -66,35 +66,25 @@ jobs:
- name: check minimal - name: check minimal
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: { command: ci-min }
command: hack
args: check --workspace --no-default-features
- name: check minimal + tests - name: check minimal + tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: { command: ci-min-test }
command: hack
args: check --workspace --no-default-features --tests --examples
- name: check full - name: check full
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: { command: ci-full }
command: check
args: --workspace --all-features --bins --examples --tests
- name: tests - name: tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
timeout-minutes: 40 timeout-minutes: 40
with: with: { command: ci-test }
command: test
args: --workspace --all-features --no-fail-fast --lib --tests -- --nocapture
- name: doc tests - name: doc tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
timeout-minutes: 40 timeout-minutes: 40
with: with: { command: ci-doctest }
command: test
args: --workspace --all-features --no-fail-fast --doc -- --nocapture
- name: Generate coverage file - name: Generate coverage file
if: > if: >