Skip to content

Merge pull request #272 from neotheprogramist/v8-get-storage-proof #456

Merge pull request #272 from neotheprogramist/v8-get-storage-proof

Merge pull request #272 from neotheprogramist/v8-get-storage-proof #456

Workflow file for this run

name: Code Quality Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
quality_checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
check:
- cargo_fmt
- cargo_clippy
toolchain:
- stable
name: Run ${{ matrix.check }} - rust ${{ matrix.toolchain }}
steps:
- uses: actions/checkout@v4
- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run ${{ matrix.check }}
run: |
if [ "${{ matrix.check }}" == "cargo_fmt" ]; then
cargo fmt -- --check
elif [ "${{ matrix.check }}" == "cargo_clippy" ]; then
cargo clippy -- -D warnings
fi