diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index f65db92f36..e966c9bc2c 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -20,27 +20,19 @@ jobs: - name: Set variables run: | echo "TOOLCHAIN=$(rustup show active-toolchain | cut -d " " -f1)" >> $GITHUB_ENV - - uses: actions-rs/toolchain@v1 + - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ env.TOOLCHAIN }} - - run: rustup component add rustfmt - - name: fmt - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - name: check - uses: actions-rs/cargo@v1 - with: - command: check - args: --release --workspace - - name: try-runtime check - uses: actions-rs/cargo@v1 - with: - command: check - args: --release --workspace --features try-runtime - - name: test - uses: actions-rs/cargo@v1 - with: - command: test - args: --release --workspace --features runtime-benchmarks \ No newline at end of file + components: rustfmt + - name: cargo fmt + run: | + cargo fmt --all -- --check + - name: cargo check + run: | + cargo check --release --workspace + - name: cargo try-runtime check + run: | + cargo check --release --workspace --features try-runtime + - name: cargo test + run: | + cargo test --release --workspace --features runtime-benchmarks