diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 595e259..0d9ca12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,28 +18,9 @@ env: POLKADOT_VERSION: polkadot-stable2506-2 jobs: - fmt: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Setup Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@v1 - - - name: Install nightly toolchain - run: rustup toolchain install nightly - - - name: Install rustfmt for nightly - run: rustup component add --toolchain nightly rustfmt - - - name: Cargo fmt - run: cargo +nightly fmt --all -- --check - cache-polkadot: name: Build and cache Polkadot binaries on ${{ matrix.os }} runs-on: ${{ matrix.os }} - needs: [fmt] strategy: matrix: os: [ubuntu-24.04, macos-14] diff --git a/Makefile b/Makefile index 285ae01..7097a2d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: format clippy test machete format: - cargo fmt --all -- --check + cargo +nightly fmt --all -- --check clippy: cargo clippy --all-features --workspace -- --deny warnings