Skip to content

Commit

Permalink
ci: use --all-targets for cargo check and test
Browse files Browse the repository at this point in the history
The previous invocations were **not** checking example code for build
errors, and if any unit tests were specified in examples they would be
skipped.
  • Loading branch information
cpu committed Nov 14, 2023
1 parent bb8d0e0 commit a2d2bd0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- run: echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
- run: vcpkg install openssl:x64-windows-static-md
- name: Run cargo check --workspace
run: cargo check --workspace
- name: Run cargo check --workspace --all-targets
run: cargo check --workspace --all-targets
- name: Run the tests
run: cargo test --workspace
run: cargo test --workspace --all-targets
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser
run: cargo test --verbose --features x509-parser --all-targets
- name: Run the tests with no default features enabled
run: cargo test --verbose --no-default-features
run: cargo test --verbose --no-default-features --all-targets

build:
strategy:
Expand Down Expand Up @@ -128,14 +128,14 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Run cargo check --workspace
run: cargo check --workspace
- name: Run cargo check --workspace --all-targets
run: cargo check --workspace --all-targets
- name: Run the tests
run: cargo test --workspace
run: cargo test --workspace --all-targets
- name: Run the tests with x509-parser enabled
run: cargo test --verbose --features x509-parser
run: cargo test --verbose --features x509-parser --all-targets
- name: Run the tests with no default features enabled
run: cargo test --verbose --no-default-features
run: cargo test --verbose --no-default-features --all-targets

coverage:
name: Measure coverage
Expand Down

0 comments on commit a2d2bd0

Please sign in to comment.