forward ordering key #507
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v1 | |
- name: Build | |
run: cargo build --features protobuf-src | |
- name: Check Clippy | |
run: | | |
cargo clippy --tests --features telemetry,protobuf-src -- -D warnings | |
cargo clippy --tests --no-default-features --features compression,tokio-rustls-runtime,async-std-rustls-runtime,auth-oauth2,telemetry,protobuf-src -- -D warnings | |
- name: Install nightly rustfmt | |
run: rustup toolchain install nightly --component rustfmt | |
- name: Check format | |
run: cargo +nightly fmt --all --check | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
pulsar-version: [ 2.10.4.3, 2.11.1.2, 3.0.0.1 ] | |
steps: | |
- name: Start Pulsar Standalone Container | |
run: docker run --name pulsar -p 6650:6650 -p 8080:8080 -d -e GITHUB_ACTIONS=true -e CI=true streamnative/pulsar:${{ matrix.pulsar-version }} /pulsar/bin/pulsar standalone | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v1 | |
- name: Run tests | |
run: cargo test --features protobuf-src -- --nocapture |