Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove use of deprecated actions-rs/cargo GH action #7375

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 7 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,11 @@ jobs:
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/[email protected]

- name: Rustfmt
uses: actions-rs/[email protected]
with:
command: fmt
args: --all -- --check
- name: cargo fmt
run: cargo fmt --all -- --check

- name: Clippy
uses: actions-rs/[email protected]
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:
Expand Down Expand Up @@ -72,10 +66,7 @@ jobs:
uses: actions-rust-lang/[email protected]

- name: Tests
uses: actions-rs/[email protected]
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:
Expand All @@ -99,10 +90,7 @@ jobs:
uses: actions-rust-lang/[email protected]

- name: Install Nushell
uses: actions-rs/[email protected]
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
Expand Down Expand Up @@ -141,13 +129,7 @@ jobs:
uses: actions-rust-lang/[email protected]

- name: Clippy
uses: actions-rs/[email protected]
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/[email protected]
with:
command: test
args: --profile ci --package nu_plugin_*
run: cargo test --profile ci --package nu_plugin_*