From d5bd29eb012807ff9d263790284b85d95f63ee2e Mon Sep 17 00:00:00 2001 From: link2xt Date: Tue, 9 Jul 2024 15:38:09 +0000 Subject: [PATCH] ci: remove actions-rs/toolchain and actions-rs/cargo dependencies --- .github/workflows/ci.yml | 45 +++++++--------------------------------- 1 file changed, 8 insertions(+), 37 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8e63f4d..f6cd54e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,58 +12,29 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: check + - run: + cargo check test: name: Test Suite runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --features support-axum,support-tungstenite + - run: + cargo test --features support-axum,support-tungstenite fmt: name: Rustfmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add rustfmt - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check + - run: + cargo fmt --all -- --check clippy: name: Clippy runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - run: rustup component add clippy - - uses: actions-rs/cargo@v1 - with: - command: clippy - args: -- -D warnings + - run: + cargo clippy -- -D warnings