1234name: codestyle567on:8 workflow_call:910jobs:11 rustfmt:12 runs-on: [ self-hosted-ci ]13 steps:14 - name: Clean Workspace15 uses: AutoModality/action-clean@v1.1.016 - uses: actions/checkout@v4.1.717 with:18 ref: ${{ github.head_ref }} 19 - name: Read .env file20 uses: xom9ikk/dotenv@v2.3.021 - name: Install toolchain version from .env22 uses: dtolnay/rust-toolchain@master23 with:24 toolchain: ${{ env.RUST_TOOLCHAIN }}25 targets: wasm32-unknown-unknown26 components: rustfmt, clippy 27 - name: Run cargo fmt28 run: cargo fmt -- --check 29 - name: Cargo fmt state30 if: success()31 run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."3233 yarn_eslint:34 runs-on: [ self-hosted-ci ]35 steps:36 - name: Clean Workspace37 uses: AutoModality/action-clean@v1.1.038 - uses: actions/checkout@v4.1.739 with:40 ref: ${{ github.head_ref }} 41 - uses: actions/setup-node@v4.0.242 with:43 node-version: 2044 - name: Install modules45 run: cd js-packages && yarn46 - name: Run ESLint47 48 run: cd js-packages && yarn lint4950 clippy:51 runs-on: [ self-hosted-ci ]52 steps:53 - name: Clean Workspace54 uses: AutoModality/action-clean@v1.1.055 - uses: actions/checkout@v4.1.756 with:57 ref: ${{ github.head_ref }} 58 - name: Install substrate dependencies59 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler60 - name: Read .env file61 uses: xom9ikk/dotenv@v2.3.062 - name: Install toolchain version from .env63 uses: dtolnay/rust-toolchain@master64 with:65 toolchain: ${{ env.RUST_TOOLCHAIN }}66 targets: wasm32-unknown-unknown67 components: rustfmt, clippy 68 - name: Run cargo check69 run: cargo clippy --features=quartz-runtime,unique-runtime,try-runtime,runtime-benchmarks --tests -- -Dwarnings70 env:71 SKIP_WASM_BUILD: '1'