Skip to content

(spec) add spec for Jellyfish Merkle Tree #1

(spec) add spec for Jellyfish Merkle Tree

(spec) add spec for Jellyfish Merkle Tree #1

Workflow file for this run

name: Rust
on:
workflow_dispatch:
push:
branches:
- "main"
- "develop"
paths:
- "dango/**"
- "grug/**"
- "**.toml"
pull_request:
branches:
- "*"
paths:
- "dango/**"
- "grug/**"
- "**.toml"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Run tests
run: cargo test
env:
RUST_BACKTRACE: 1
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Run clippy
run: cargo clippy --bins --tests --benches --examples --all-features --all-targets -- -D warnings
format:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt
- name: Run rustfmt checks
run: cargo +nightly fmt --check --all