difftreelog
ci forbid eslint warnings
in: master
1 file changed
.github/workflows/codestyle.ymldiffbeforeafterboth1# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586837012/Code+style+testing2# Nested workflow for checks related to formatting Rust code 34name: codestyle56# Triger: only call from main workflow(re-usable workflows)7on: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@v317 with:18 ref: ${{ github.head_ref }} 19 - name: Install latest nightly20 uses: actions-rs/toolchain@v121 with:22 toolchain: nightly23 default: true24 target: wasm32-unknown-unknown25 components: rustfmt, clippy26 - name: Run cargo fmt27 run: cargo fmt -- --check # In that mode it returns only exit code.28 - name: Cargo fmt state29 if: success()30 run: echo "Nothing to do. Command 'cargo fmt -- --check' returned exit code 0."3132 yarn_eslint:33 runs-on: [ self-hosted-ci ]34 steps:35 - name: Clean Workspace36 uses: AutoModality/action-clean@v1.1.037 - uses: actions/checkout@v338 with:39 ref: ${{ github.head_ref }} 40 - uses: actions/setup-node@v341 with:42 node-version: 1643 - name: Install modules44 run: cd tests && yarn45 - name: Run ESLint46 run: cd tests && yarn eslint --ext .ts,.js src/4748 clippy:49 if: ${{ false }}50 runs-on: [ self-hosted-ci ]51 steps:52 - uses: actions/checkout@v353 - name: Install substrate dependencies54 run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler55 - name: Install latest nightly56 uses: actions-rs/toolchain@v157 with:58 toolchain: nightly59 default: true60 target: wasm32-unknown-unknown61 components: rustfmt, clippy62 - name: Run cargo check63 run: cargo clippy -- -Dwarnings