Skip to content

Commit fa567a1

Browse files
authored
Merge pull request #30 from cakebaker/ci_fix_warnings
ci: fix warnings by removing actions-rs/cargo and actions-rs/toolchain
2 parents 993b3e4 + 7631e14 commit fa567a1

File tree

1 file changed

+10
-42
lines changed

1 file changed

+10
-42
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,9 @@ jobs:
1818
- name: Checkout repository
1919
uses: actions/checkout@v4
2020
- name: Install Rust toolchain
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
toolchain: stable
24-
profile: minimal
25-
override: true
21+
uses: dtolnay/rust-toolchain@stable
2622
- uses: Swatinem/rust-cache@v2
27-
- uses: actions-rs/cargo@v1
28-
with:
29-
command: test
30-
args: --all-features --workspace
23+
- run: cargo test --all-features --workspace
3124

3225
rustfmt:
3326
name: Rustfmt
@@ -36,18 +29,12 @@ jobs:
3629
- name: Checkout repository
3730
uses: actions/checkout@v4
3831
- name: Install Rust toolchain
39-
uses: actions-rs/toolchain@v1
32+
uses: dtolnay/rust-toolchain@stable
4033
with:
41-
toolchain: stable
42-
profile: minimal
43-
override: true
4434
components: rustfmt
4535
- uses: Swatinem/rust-cache@v2
4636
- name: Check formatting
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: fmt
50-
args: --all -- --check
37+
run: cargo fmt --all -- --check
5138

5239
clippy:
5340
name: Clippy
@@ -56,18 +43,12 @@ jobs:
5643
- name: Checkout repository
5744
uses: actions/checkout@v4
5845
- name: Install Rust toolchain
59-
uses: actions-rs/toolchain@v1
46+
uses: dtolnay/rust-toolchain@stable
6047
with:
61-
toolchain: stable
62-
profile: minimal
63-
override: true
6448
components: clippy
6549
- uses: Swatinem/rust-cache@v2
6650
- name: Clippy check
67-
uses: actions-rs/cargo@v1
68-
with:
69-
command: clippy
70-
args: --all-targets --all-features --workspace -- -D warnings
51+
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
7152

7253
docs:
7354
name: Docs
@@ -76,18 +57,12 @@ jobs:
7657
- name: Checkout repository
7758
uses: actions/checkout@v4
7859
- name: Install Rust toolchain
79-
uses: actions-rs/toolchain@v1
80-
with:
81-
toolchain: stable
82-
profile: minimal
83-
override: true
60+
uses: dtolnay/rust-toolchain@stable
8461
- uses: Swatinem/rust-cache@v2
8562
- name: Check documentation
8663
env:
8764
RUSTDOCFLAGS: -D warnings
88-
uses: actions-rs/cargo@v1
89-
with:
90-
command: doc
65+
run: cargo doc
9166

9267
coverage:
9368
name: Code Coverage
@@ -122,16 +97,9 @@ jobs:
12297
outputs CODECOV_FLAGS
12398
12499
- name: rust toolchain ~ install
125-
uses: actions-rs/toolchain@v1
126-
with:
127-
toolchain: ${{ steps.vars.outputs.TOOLCHAIN }}
128-
default: true
129-
profile: minimal # minimal component installation (ie, no documentation)
100+
uses: dtolnay/rust-toolchain@nightly
130101
- name: Test
131-
uses: actions-rs/cargo@v1
132-
with:
133-
command: test
134-
args: ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
102+
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
135103
env:
136104
CARGO_INCREMENTAL: "0"
137105
RUSTC_WRAPPER: ""

0 commit comments

Comments
 (0)