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 #390
Workflow file for this run
This file contains 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: 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 |