Skip to content

Commit

Permalink
test crates individually
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Oct 26, 2023
1 parent 337eba9 commit 281e949
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,29 @@ jobs:
RUST_LOG: ${{ runner.debug && 'DEBUG' || 'INFO'}}

- name: tests (no features)
run: cargo test --workspace --no-default-features --lib --bins --tests
run: |
for i in ${CRATES_LIST//,/ }
do
cargo test -p $i --no-default-features --lib --bins --tests
done
env:
RUST_LOG: ${{ runner.debug && 'DEBUG' || 'INFO'}}

- name: tests (default features)
run: cargo test --workspace --lib --bins --tests
run: |
for i in ${CRATES_LIST//,/ }
do
cargo test -p $i --lib --bins --tests
done
env:
RUST_LOG: ${{ runner.debug && 'DEBUG' || 'INFO'}}

- name: doctests
run: cargo test --workspace --all-features --doc
run: |
for i in ${CRATES_LIST//,/ }
do
cargo test -p $i --all-features --doc
done
env:
RUST_LOG: ${{ runner.debug && 'DEBUG' || 'INFO'}}

Expand Down

0 comments on commit 281e949

Please sign in to comment.