git.delta.rocks / unique-network / refs/commits / 4bcabac60baa

difftreelog

ci run clippy

Yaroslav Bolyukin2023-02-17parent: #9f5355d.patch.diff
in: master

1 file changed

modified.github/workflows/codestyle.ymldiffbeforeafterboth
before · .github/workflows/codestyle.yml
1# 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 --max-warnings=0 src/4748  clippy:49    runs-on: [ self-hosted-ci ]50    steps:51      - uses: actions/checkout@v352      - name: Install substrate dependencies53        run: sudo apt install -y libssl-dev pkg-config libclang-dev clang protobuf-compiler54      - name: Install latest nightly55        uses: actions-rs/toolchain@v156        with:57            toolchain: nightly58            default: true59            target: wasm32-unknown-unknown60            components: rustfmt, clippy61      - name: Run cargo check62        run: cargo clippy -- -Dwarnings