Skip to content

Commit

Permalink
Avoid --all-targets for cargo test in CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Mar 15, 2024
1 parent 6e04f85 commit d3d3447
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ jobs:
- name: Run cargo check
run: cargo check --all-targets
- name: Run the tests
run: cargo test --all-targets
run: cargo test
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser --all-targets
run: cargo test --verbose --features x509-parser
- name: Run the tests with aws_lc_rs backend enabled
run: cargo test --verbose --no-default-features --features aws_lc_rs,pem --all-targets
run: cargo test --verbose --no-default-features --features aws_lc_rs,pem
- name: Run the tests with FIPS aws_lc_rs module
run: cargo test --verbose --no-default-features --features fips,pem --all-targets
run: cargo test --verbose --no-default-features --features fips,pem
- name: Run the tests with no features enabled
run: cargo test --verbose --no-default-features --all-targets
run: cargo test --verbose --no-default-features

build:
strategy:
Expand Down Expand Up @@ -176,13 +176,13 @@ jobs:
- name: Run cargo check
run: cargo check --all-targets
- name: Run the tests
run: cargo test --all-targets
run: cargo test
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser --all-targets
run: cargo test --verbose --features x509-parser
- name: Run the tests with aws_lc_rs backend enabled
run: cargo test --verbose --no-default-features --features aws_lc_rs,pem --all-targets
run: cargo test --verbose --no-default-features --features aws_lc_rs,pem
- name: Run the tests with FIPS aws_lc_rs module
run: cargo test --verbose --no-default-features --features fips,pem --all-targets
run: cargo test --verbose --no-default-features --features fips,pem

# Build rustls-cert-gen as a standalone package, see this PR for why it's needed:
# https://github.com/rustls/rcgen/pull/206#pullrequestreview-1816197358
Expand Down

0 comments on commit d3d3447

Please sign in to comment.