git.delta.rocks / unique-network / refs/commits / 1ddbdca943fb

difftreelog

Update codestyle_v2.yml

Alex2022-10-19parent: #ddd0063.patch.diff
in: master

1 file changed

modified.github/workflows/codestyle_v2.ymldiffbeforeafterboth
before · .github/workflows/codestyle_v2.yml
1# Nested workflow for checks related to formatting Rust code 23name: cargo fmt45# Triger: only call from main workflow(re-usable workflows)6on:7  workflow_call:89jobs:10  rustfmt:11    runs-on: self-hosted-ci1213    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, clippy 22      - 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."272829  clippy:30    if: ${{ false }}31    runs-on: self-hosted-ci32      33    steps:34         35      - uses: actions/checkout@v336      - name: Install substrate dependencies37        run: sudo apt-get install libssl-dev pkg-config libclang-dev clang38      - name: Install latest nightly39        uses: actions-rs/toolchain@v140        with:41            toolchain: nightly42            default: true43            target: wasm32-unknown-unknown44            components: rustfmt, clippy45      - name: Run cargo check46        run: cargo clippy -- -Dwarnings