git.delta.rocks / unique-network / refs/commits / 6a048d7eaf42

difftreelog

source

.github/workflows/codestyle_v2.yml1.3 KiBsourcehistory
1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing2# Nested workflow for checks related to formatting Rust code 34name: cargo fmt56# Triger: only call from main workflow(re-usable workflows)7on:8  workflow_call:910jobs:11  rustfmt:12    runs-on: self-hosted-ci1314    steps:15      - uses: actions/checkout@v316      - name: Install latest nightly17        uses: actions-rs/toolchain@v118        with:19            toolchain: nightly20            default: true21            target: wasm32-unknown-unknown22            components: rustfmt, clippy 23      - name: Run cargo fmt24        run: cargo fmt -- --check   # In that mode it returns only exit code.25      - name: Cargo fmt state26        if: success()27        run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."282930  clippy:31    if: ${{ false }}32    runs-on: self-hosted-ci33      34    steps:35         36      - uses: actions/checkout@v337      - name: Install substrate dependencies38        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang39      - name: Install latest nightly40        uses: actions-rs/toolchain@v141        with:42            toolchain: nightly43            default: true44            target: wasm32-unknown-unknown45            components: rustfmt, clippy46      - name: Run cargo check47        run: cargo clippy -- -Dwarnings