Skip to content

feat(elastos-vz, elastos-server): defensive Vz stop timeout + observa… #32

feat(elastos-vz, elastos-server): defensive Vz stop timeout + observa…

feat(elastos-vz, elastos-server): defensive Vz stop timeout + observa… #32

Workflow file for this run

name: CI
on:
push:
# Run on main and on Vz-backend working branches so Phase 1+ commits
# get verified on Linux without waiting for a PR. The `sash/**`
# pattern covers the current Vz development branch
# (`sash/local-test`) and any future Vz sub-branches.
branches: [main, "sash/**", "vz/**"]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
check:
name: Check + Clippy + Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
workspaces: elastos
- name: cargo fmt
working-directory: elastos
run: cargo fmt --all -- --check
- name: cargo clippy
working-directory: elastos
run: cargo clippy --workspace --all-targets -- -D warnings
- name: cargo check
working-directory: elastos
run: cargo check --workspace
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: elastos
- name: cargo test
working-directory: elastos
run: cargo test --workspace
# Network-sensitive tests are #[ignore] and won't run.
# Run them explicitly with: cargo test --workspace -- --ignored
build-release:
name: Build Release (x86_64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: elastos
- name: cargo build --release
working-directory: elastos
run: cargo build --workspace --release