Skip to content

chore: Batch ack requests and sink responses for better performance (… #272

chore: Batch ack requests and sink responses for better performance (…

chore: Batch ack requests and sink responses for better performance (… #272

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- release-*
pull_request:
branches:
- main
defaults:
run:
shell: bash
jobs:
build:
name: Clippy and Unit Tests
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache-workspaces: |
. -> target
./examples/batchmap-cat -> target
./examples/batchmap-flatmap -> target
./examples/map-cat -> target
./examples/map-tickgen-serde -> target
./examples/mapt-event-time-filter -> target
./examples/reduce-counter -> target
./examples/sideinput -> target
./examples/sideinput/udf -> target
./examples/simple-source -> target
./examples/sink-log -> target
./examples/source-transformer-now -> target
- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install dependencies
run: sudo apt-get install -y protobuf-compiler
- name: Code Generation
run: make codegen
- name: Ensure generated code is checked in
run: git diff --exit-code
- name: Lint
run: make lint
- name: Run tests
run: make test
- name: Documentation generation
run: RUSTFLAGS="-D warnings" cargo doc
- name: Dry run Cargo Publish
run: cargo publish --dry-run