From 69daca7a12d244db0b36799096465733bdcef22b Mon Sep 17 00:00:00 2001 From: Reilly Wood Date: Tue, 6 Dec 2022 18:25:49 -0800 Subject: [PATCH] Remove deprecated actions-rs/cargo GH action --- .github/workflows/ci.yml | 32 +++++++------------------------- 1 file changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7fa8d3d42d0a..7e1057fde46f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,17 +28,11 @@ jobs: - name: Setup Rust toolchain and cache uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - - name: Rustfmt - uses: actions-rs/cargo@v1.0.1 - with: - command: fmt - args: --all -- --check + - name: cargo fmt + run: cargo fmt --all -- --check - name: Clippy - uses: actions-rs/cargo@v1.0.1 - with: - command: clippy - args: --workspace --exclude nu_plugin_* -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect + run: cargo clippy --workspace --exclude nu_plugin_* -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect nu-tests: env: @@ -72,10 +66,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - name: Tests - uses: actions-rs/cargo@v1.0.1 - with: - command: test - args: --workspace --profile ci --exclude nu_plugin_* ${{ matrix.flags }} + run: cargo test --workspace --profile ci --exclude nu_plugin_* ${{ matrix.flags }} python-virtualenv: env: @@ -99,10 +90,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - name: Install Nushell - uses: actions-rs/cargo@v1.0.1 - with: - command: install - args: --locked --path=. --profile ci --no-default-features + run: cargo install --locked --path=. --profile ci --no-default-features - name: Setup Python uses: actions/setup-python@v4 @@ -141,13 +129,7 @@ jobs: uses: actions-rust-lang/setup-rust-toolchain@v1.3.4 - name: Clippy - uses: actions-rs/cargo@v1.0.1 - with: - command: clippy - args: --package nu_plugin_* ${{ matrix.flags }} -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect + run: cargo clippy --package nu_plugin_* ${{ matrix.flags }} -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect - name: Tests - uses: actions-rs/cargo@v1.0.1 - with: - command: test - args: --profile ci --package nu_plugin_* + run: cargo test --profile ci --package nu_plugin_*