Skip to content

fix: Fix help generation #14

fix: Fix help generation

fix: Fix help generation #14

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Assess Rust code quality
on:
push:
paths:
- '.github/workflows/code-quality.yml'
- 'offchain/**'
jobs:
assess-rust-code-quality:
runs-on: ubuntu-latest
defaults:
run:
working-directory: offchain
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install protoc
run: sudo apt update && sudo apt install -y protobuf-compiler libprotobuf-dev
- name: Update rust
run: rustup update
- name: Install cargo-machete
run: cargo install cargo-machete
continue-on-error: true
- name: Analyze dependencies
run: cargo machete .
- name: Check code format
run: cargo fmt --all -- --check
- name: Run linter
run: cargo clippy -- -A clippy::module_inception