Skip to content

Commit 6d013ac

Browse files
committed
chore: update github actions
1 parent 0114e72 commit 6d013ac

File tree

1 file changed

+18
-37
lines changed

1 file changed

+18
-37
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -22,50 +22,35 @@ jobs:
2222
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2323

2424
- name: Install Rust Stable Toolchain
25-
uses: actions-rs/toolchain@v1
25+
uses: dtolnay/rust-toolchain@stable
2626
with:
27-
profile: minimal
28-
toolchain: stable
29-
override: true
3027
components: rustfmt, clippy
3128

3229
- name: Install Rust Nightly Toolchain
33-
uses: actions-rs/toolchain@v1
34-
with:
35-
profile: minimal
36-
toolchain: nightly
30+
uses: dtolnay/rust-toolchain@nightly
3731

3832
- name: Check Code Format
39-
uses: actions-rs/cargo@v1
40-
with:
41-
command: fmt
42-
args: --all -- --check
33+
run: cargo fmt --all -- --check
34+
shell: bash
4335

4436
- name: Code Lint
45-
uses: actions-rs/cargo@v1
46-
with:
47-
command: clippy
48-
args: --all-targets --all-features --workspace -- -D warnings
37+
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
38+
shell: bash
4939

5040
- name: Code Lint Without Default Features
51-
uses: actions-rs/cargo@v1
52-
with:
53-
command: clippy
54-
args: --no-default-features --workspace -- -D warnings
41+
run: cargo clippy --no-default-features --workspace -- -D warnings
42+
shell: bash
5543

5644
- name: Test
57-
uses: actions-rs/cargo@v1
58-
with:
59-
command: test
60-
args: --all-features --workspace
45+
run: cargo test --all-features --workspace
46+
shell: bash
6147

6248
- name: Nightly Test
63-
uses: actions-rs/cargo@v1
49+
run: cargo test
50+
shell: bash
6451
env:
6552
RUSTFLAGS: '--cfg nightly -Zcrate-attr=feature(variant_count)'
66-
with:
67-
toolchain: nightly
68-
command: test
53+
RUSTUP_TOOLCHAIN: nightly
6954

7055
coverage:
7156
name: Code Coverage
@@ -75,17 +60,13 @@ jobs:
7560
uses: actions/checkout@v3
7661

7762
- name: Install Rust Toolchain
78-
uses: actions-rs/toolchain@v1
79-
with:
80-
profile: minimal
81-
toolchain: stable
82-
override: true
63+
uses: dtolnay/rust-toolchain@stable
8364

8465
- name: Generate Code Coverage
85-
uses: actions-rs/[email protected]
86-
with:
87-
version: 0.22.0
88-
args: --all-features
66+
run: |
67+
cargo install --version 0.22.0 cargo-tarpaulin
68+
cargo tarpaulin --all-features --out Xml
69+
shell: bash
8970

9071
- name: Upload Code Coverage
9172
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)