diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c63e83e1..5d4894ab 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,11 +17,11 @@ jobs: - name: Build run: cargo build --verbose - name: Run iceberg-rust-spec tests - run: cargo test -p iceberg-rust-spec --lib --verbose + run: make test-iceberg-rust-spec - name: Run iceberg-rust tests - run: cargo test -p iceberg-rust --lib --verbose + run: make test-iceberg-rust - name: Run datafusion-iceberg tests - run: cargo test -p datafusion_iceberg --tests --verbose -j 2 + run: make test-datafusion_iceberg lint: runs-on: ubuntu-latest @@ -30,4 +30,4 @@ jobs: - name: Install Clippy run: rustup component add clippy - name: Run Clippy - run: cargo clippy --all-targets --all-features -- -D warnings + run: make clippy diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..469d3834 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +test: test-iceberg-rust-spec test-iceberg-rust test-datafusion_iceberg + +test-iceberg-rust-spec: + cargo test -p iceberg-rust-spec --lib + +test-iceberg-rust: + cargo test -p iceberg-rust --lib + +test-datafusion_iceberg: + cargo test -p datafusion_iceberg --tests -j 2 + +clippy: + cargo clippy --all-targets --all-features -- -D warnings