git.delta.rocks / unique-network / refs/commits / 378b7f3ae3aa

difftreelog

add clean workspace for codestyle workflow

Konstantin Astakhov2022-12-07parent: #e24fea5.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      - 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   # In that mode it returns only exit code.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
after · .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 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-get install 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