Repository navigation
Dex Web: wait for the page-load search in the WorkQueueSearch test #1967
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
| name: Rust SDK CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "sdk-rust/**" | |
| - "cli/**" | |
| - "server-zd/**" | |
| - "s3local/**" | |
| - "protos/**" | |
| - "web/**" | |
| - "codecov.yml" | |
| - ".github/workflows/sdk-rust-ci.yml" | |
| pull_request: | |
| paths: | |
| - "sdk-rust/**" | |
| - "cli/**" | |
| - "server-zd/**" | |
| - "s3local/**" | |
| - "protos/**" | |
| - "web/**" | |
| - "codecov.yml" | |
| - ".github/workflows/sdk-rust-ci.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: sdk-rust-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: "1" | |
| RUSTUP_TOOLCHAIN: "1.97.1" | |
| jobs: | |
| quality: | |
| name: Format and Clippy | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| defaults: | |
| run: | |
| working-directory: sdk-rust | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: rustup toolchain install 1.97.1 --profile minimal --component rustfmt,clippy | |
| - name: Check formatting | |
| run: cargo fmt --all --check | |
| - name: Validate public API documentation | |
| run: make docs-check | |
| - name: Run Clippy | |
| run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings | |
| tests: | |
| name: Tests (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| defaults: | |
| run: | |
| working-directory: sdk-rust | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: rustup toolchain install 1.97.1 --profile minimal | |
| - name: Run tests | |
| run: cargo test --workspace --locked | |
| integration: | |
| name: Integration coverage (zd, pull) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 75 | |
| permissions: | |
| contents: read | |
| id-token: write | |
| env: | |
| DEX_INTEG_ENGINE: zd | |
| DEX_SERVER_ZD_BINARY: ${{ github.workspace }}/server-zd/target/debug/dex-server-zd | |
| CARGO_TERM_COLOR: always | |
| CARGO_INCREMENTAL: "0" | |
| RUST_BACKTRACE: "1" | |
| RUSTUP_TOOLCHAIN: "1.97.1" | |
| CARGO_BUILD_JOBS: "4" | |
| defaults: | |
| run: | |
| working-directory: sdk-rust | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: rustup toolchain install 1.97.1 --profile minimal | |
| - name: Install libclang for RocksDB | |
| run: sudo apt-get update && sudo apt-get install -y libclang-dev | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: server-zd | |
| shared-key: server-zd-paradedb | |
| save-if: false | |
| - name: Build dex-server-zd | |
| working-directory: server-zd | |
| run: cargo build --locked -p dexzd-server --bin dex-server-zd | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: web/package-lock.json | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: cli/go.mod | |
| cache-dependency-path: | | |
| cli/go.sum | |
| web/go.sum | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@cargo-llvm-cov | |
| - name: Run integration coverage | |
| run: ./run-integration-tests.sh --coverage | |
| - name: Upload Rust integration coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| disable_search: true | |
| fail_ci_if_error: true | |
| files: ./sdk-rust/coverage/lcov.info | |
| flags: sdk-rust-integration-pull | |
| name: sdk-rust-integration-pull | |
| use_oidc: true | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: sdk-rust-integration-coverage-pull | |
| path: sdk-rust/coverage/ | |
| if-no-files-found: ignore | |
| - name: Upload service logs | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: sdk-rust-integration-services-pull | |
| path: /tmp/test-rust-sdk-integration-services.log | |
| if-no-files-found: ignore |