Skip to content

feature: ensure chain state is consistent across nodes #282

feature: ensure chain state is consistent across nodes

feature: ensure chain state is consistent across nodes #282

Workflow file for this run

name: Rust Test Suite
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
pull_request:
push:
branches: [main]
jobs:
cargo-fmt:
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- run: rustup update 1.87
- run: rustup default 1.87
- run: rustup component add rustfmt
- name: Cargo fmt
run: cargo fmt --all -- --check
cargo-build:
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Caching Rust Dependencies
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- run: rustup update 1.87
- run: rustup default 1.87
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libclang-dev clang
- name: Cargo build
run: cargo build --all
cargo-test:
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Caching Rust Dependencies
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- run: rustup update 1.87
- run: rustup default 1.87
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libclang-dev clang
- name: Cargo test
env:
MNEMONIC: ${{ secrets.TEST_MNEMONIC }}
MNEMONIC_TO: ${{ secrets.TEST_MNEMONIC_TO }}
IS_TESTNET: "true"
run: cargo test --all
clippy_check:
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
- name: Caching Rust Dependencies
uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- run: rustup update 1.87
- run: rustup default 1.87
- run: cargo clean
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler libclang-dev clang
- run: rustup component add clippy
- uses: clechasseur/rs-clippy-check@v3
with:
args: -- -D warnings