Skip to content

Commit

Permalink
ci: remove actions-rs/cargo & use cargo directly
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Feb 10, 2024
1 parent 7c7eae1 commit 3c32dd4
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- run: cargo check

test:
name: cargo test
Expand All @@ -36,9 +34,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test

fmt:
name: cargo fmt --all -- --check
Expand All @@ -51,10 +47,7 @@ jobs:
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: cargo clippy -- -D warnings
Expand All @@ -70,10 +63,7 @@ jobs:
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

coverage:
name: Code Coverage
Expand Down Expand Up @@ -114,10 +104,7 @@ jobs:
default: true
profile: minimal # minimal component installation (ie, no documentation)
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
env:
CARGO_INCREMENTAL: "0"
RUSTC_WRAPPER: ""
Expand Down

0 comments on commit 3c32dd4

Please sign in to comment.