diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml new file mode 100644 index 000000000..56e1ceac1 --- /dev/null +++ b/.github/workflows/rust-ci.yml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2023 LakeSoul Contributors +# +# SPDX-License-Identifier: Apache-2.0 + +on: + push: + paths: + - "rust/**" + branches: + - 'main' + pull_request: + paths: + - "rust/**" + branches: + - 'main' + - 'release/**' + workflow_dispatch: + +name: Rust CI + +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + rust_ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly-2023-05-20 + components: clippy + default: true + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.x" + - name: Run tests + run: cd rust && cargo test --all-features --package lakesoul-datafusion + diff --git a/.github/workflows/rust-clippy.yml b/.github/workflows/rust-clippy.yml index 31e1a16d0..9119efc19 100644 --- a/.github/workflows/rust-clippy.yml +++ b/.github/workflows/rust-clippy.yml @@ -5,18 +5,18 @@ on: push: paths: - - "native-io/**" + - "rust/**" branches: - 'main' pull_request: paths: - - "native-io/**" + - "rust/**" branches: - 'main' - 'release/**' workflow_dispatch: -name: Clippy check +name: Rust Clippy Check # Make sure CI fails on all warnings, including Clippy lints env: