Implement re-try logic for TestOrchestratorServer port binding #1137
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: 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 |