Skip to content

Commit

Permalink
extend ci to test each package
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Oct 26, 2023
1 parent ae9a446 commit cdc0cca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ jobs:
with:
rust-version: stable

- name: Install jq
run: apt install -y jq

- name: Cache Cargo
uses: actions/cache@v3
with:
Expand All @@ -65,8 +68,11 @@ jobs:
# this key equals the ones on `linux-build-lib` for re-use
key: cargo-cache-benchmark-${{ hashFiles('datafusion/**/Cargo.toml', 'benchmarks/Cargo.toml', 'datafusion-cli/Cargo.toml') }}

- name: Check workspace without default features
run: cargo check --no-default-features -p datafusion
- name: Check workspace without default features in each package tests
run: |
for package in $(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name'); do
cargo check --no-default-features --tests --package "$package" || exit 1
done
- name: Check workspace in debug mode
run: cargo check
Expand Down

0 comments on commit cdc0cca

Please sign in to comment.