Skip to content

Add initial stream commands to protobuf. (#998) #5

Add initial stream commands to protobuf. (#998)

Add initial stream commands to protobuf. (#998) #5

Workflow file for this run

name: Rust tests
on:
push:
branches: [main]
paths:
- logger_core/**
- glide-core/**
- submodules/**
- utils/cluster_manager.py
- .github/workflows/rust.yml
pull_request:
paths:
- logger_core/**
- glide-core/**
- submodules/**
- utils/cluster_manager.py
- .github/workflows/rust.yml
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
redis:
- 6.2.14
- 7.2.3
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install redis
uses: ./.github/workflows/install-redis
with:
redis-version: ${{ matrix.redis }}
- name: Install shared software dependencies
uses: ./.github/workflows/install-shared-dependencies
with:
os: "ubuntu-latest"
target: "x86_64-unknown-linux-gnu"
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
working-directory: ./glide-core
run: cargo test -- --nocapture --test-threads=1 # TODO remove the concurrency limit after we fix test flakyness.
- name: Run logger tests
working-directory: ./logger_core
run: cargo test -- --nocapture --test-threads=1
- name: Check features
working-directory: ./glide-core
run: |
cargo check --benches --all-features
cargo check --no-default-features
- uses: ./.github/workflows/test-benchmark
with:
language-flag: -rust
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./glide-core
name: lint glide-core
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./logger_core
name: lint logger
- uses: ./.github/workflows/lint-rust
with:
cargo-toml-folder: ./benchmarks/rust
name: lint benchmark