Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

feat: get latest blocks with only one sql query #398

feat: get latest blocks with only one sql query

feat: get latest blocks with only one sql query #398

Workflow file for this run

name: Rust
on:
push:
branches:
- main
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build
runs-on: zondax-runners
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl protobuf-compiler build-essential
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: build
run: |
protoc --version
cargo build --all-features
fmt:
name: Rustfmt
runs-on: zondax-runners
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl protobuf-compiler build-essential
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
components: rustfmt
- name: Enforce formatting
run: |
rustup component add rustfmt
cargo fmt --check
clippy:
name: Clippy
runs-on: zondax-runners
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl protobuf-compiler build-essential
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Linting
run: |
protoc --version
cargo clippy --all-features -- -D warnings