1234name: codestyle567on:8 workflow_call:910jobs:11 rustfmt:12 runs-on: [ self-hosted-ci ]13 steps:14 - uses: actions/checkout@v315 - name: Install latest nightly16 uses: actions-rs/toolchain@v117 with:18 toolchain: nightly19 default: true20 target: wasm32-unknown-unknown21 components: rustfmt, clippy22 - name: Run cargo fmt23 run: cargo fmt -- --check 24 - name: Cargo fmt state25 if: success()26 run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."2728 yarn_eslint:29 runs-on: [ self-hosted-ci ]30 steps:31 - uses: actions/checkout@v332 - uses: actions/setup-node@v333 with:34 node-version: 1635 - name: Install modules36 run: cd tests && yarn37 - name: Run ESLint38 run: cd tests && yarn eslint --ext .ts,.js src/3940 clippy:41 if: ${{ false }}42 runs-on: [ self-hosted-ci ]43 steps:44 - uses: actions/checkout@v345 - name: Install substrate dependencies46 run: sudo apt-get install libssl-dev pkg-config libclang-dev clang protobuf-compiler47 - name: Install latest nightly48 uses: actions-rs/toolchain@v149 with:50 toolchain: nightly51 default: true52 target: wasm32-unknown-unknown53 components: rustfmt, clippy54 - name: Run cargo check55 run: cargo clippy -- -Dwarnings