Skip to content

Commit 63e4375

Browse files
committed
chore: Update actions
1 parent d5440ab commit 63e4375

File tree

1 file changed

+13
-35
lines changed

1 file changed

+13
-35
lines changed

.github/workflows/datta.yml

+13-35
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,31 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

1919
- name: Install stable
20-
uses: actions-rs/toolchain@v1
20+
uses: dtolnay/rust-toolchain@stable
2121
with:
22-
profile: minimal
23-
toolchain: stable
24-
override: true
2522
components: clippy, rustfmt
2623

2724
- name: Run rustfmt
28-
uses: actions-rs/cargo@v1
29-
with:
30-
command: fmt
31-
args: -- --check --verbose
25+
run:
26+
cargo fmt --all -- --check --verbose
3227

33-
- name: Run cargo clippy
34-
uses: actions-rs/clippy-check@v1
28+
- name: Run clippy
29+
uses: clechasseur/rs-clippy-check@v3
3530
with:
36-
token: ${{ secrets.GITHUB_TOKEN }}
37-
args: --all-targets --tests --benches -- -D warnings
31+
args: -- -D warnings --verbose
3832

3933
build-test:
4034

4135
runs-on: ubuntu-latest
4236

4337
steps:
44-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
4539

4640
- name: Install Rust stable
47-
uses: actions-rs/toolchain@v1
48-
with:
49-
profile: minimal
50-
toolchain: stable
51-
override: true
41+
uses: dtolnay/rust-toolchain@stable
5242

5343
- name: Build
5444
run: cargo build --verbose --tests --benches
@@ -64,14 +54,10 @@ jobs:
6454
runs-on: ubuntu-latest
6555

6656
steps:
67-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
6858

6959
- name: Install Rust stable
70-
uses: actions-rs/toolchain@v1
71-
with:
72-
profile: minimal
73-
toolchain: stable
74-
override: true
60+
uses: dtolnay/rust-toolchain@stable
7561

7662
- name: Install grcov
7763
env:
@@ -118,19 +104,11 @@ jobs:
118104
runs-on: ubuntu-latest
119105

120106
steps:
121-
- uses: actions/checkout@v3
122-
123-
- name: Install stable
124-
uses: actions-rs/toolchain@v1
125-
with:
126-
profile: minimal
127-
toolchain: stable
128-
override: true
107+
- uses: actions/checkout@v4
129108

130109
- name: Install nightly
131-
uses: actions-rs/toolchain@v1
110+
uses: dtolnay/rust-toolchain@stable
132111
with:
133-
profile: minimal
134112
toolchain: nightly
135113

136114
- name: Install cargo-udeps

0 commit comments

Comments
 (0)