Skip to content

Implement re-try logic for TestOrchestratorServer port binding #1137

Implement re-try logic for TestOrchestratorServer port binding

Implement re-try logic for TestOrchestratorServer port binding #1137

Workflow file for this run

name: Test and Lint Orchestrator
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [opened, reopened, synchronize, ready_for_review]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings" # Makes CI fail on compilation/clippy warnings
PROTOC_VERSION: "26.0"
jobs:
ci-checks:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: "Install fmt nightly"
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
- name: "Install protoc"
run: |
echo "protoc version: ${PROTOC_VERSION}"
cd /tmp
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip
sudo unzip protoc-*.zip -d /usr/local && rm protoc-*.zip
protoc --version
- uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build
run: cargo build
- name: Run formatter
run: cargo +nightly fmt --check --all
- name: Run linter
run: cargo clippy --no-deps --all-targets --all-features
- name: Run tests
run: cargo test