[rust] Add end-to-end ROW type #85
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| name: Elixir Build and Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'website/**' | |
| - '**/*.md' | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'website/**' | |
| - '**/*.md' | |
| - 'bindings/cpp/**' | |
| - 'bindings/python/**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| env: | |
| OTP_VERSION: "28.0.2" | |
| ELIXIR_VERSION: "1.19.5" | |
| FLUSS_TEST_CLUSTER_BIN: ${{ github.workspace }}/target/debug/fluss-test-cluster | |
| MIX_ENV: test | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up BEAM | |
| uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0 | |
| with: | |
| otp-version: ${{ env.OTP_VERSION }} | |
| elixir-version: ${{ env.ELIXIR_VERSION }} | |
| - name: Install protoc | |
| run: sudo apt-get update && sudo apt-get install -y protobuf-compiler | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | |
| - name: Cache Mix deps and build | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| bindings/elixir/deps | |
| bindings/elixir/_build | |
| key: ${{ runner.os }}-mix-otp${{ env.OTP_VERSION }}-elixir${{ env.ELIXIR_VERSION }}-${{ hashFiles('bindings/elixir/mix.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-mix-otp${{ env.OTP_VERSION }}-elixir${{ env.ELIXIR_VERSION }}- | |
| - name: Build fluss-test-cluster binary | |
| run: cargo build -p fluss-test-cluster | |
| - name: Fetch Elixir deps | |
| working-directory: bindings/elixir | |
| run: mix deps.get | |
| - name: Check formatting | |
| working-directory: bindings/elixir | |
| run: mix format --check-formatted | |
| - name: Compile (warnings as errors) | |
| working-directory: bindings/elixir | |
| run: mix compile --warnings-as-errors | |
| - name: Credo | |
| working-directory: bindings/elixir | |
| run: mix credo | |
| - name: Run unit tests | |
| working-directory: bindings/elixir | |
| run: mix test | |
| - name: Run integration tests | |
| working-directory: bindings/elixir | |
| run: mix test --include integration --only integration | |
| env: | |
| RUST_LOG: DEBUG | |
| RUST_BACKTRACE: full |