Skip to content

Commit a8346b3

Browse files
Update CI actions
1 parent ce56f52 commit a8346b3

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
name: "Rustfmt"
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Cache cargo files
19-
uses: actions/cache@v3
19+
uses: actions/cache@v4
2020
with:
2121
path: |
2222
~/.cargo/bin/
@@ -27,21 +27,18 @@ jobs:
2727
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2828

2929
- name: Rustfmt
30-
uses: actions-rs/cargo@v1
31-
with:
32-
command: fmt
33-
args: -- --check
30+
run: cargo fmt -- --check
3431

3532
# Run clippy and tests. We just use the native target here and hope the results
3633
# are the same for all others
3734
lint-test:
3835
name: Lint
3936
runs-on: ubuntu-latest
4037
steps:
41-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
4239

4340
- name: Cache Rust files
44-
uses: actions/cache@v3
41+
uses: actions/cache@v4
4542
with:
4643
path: |
4744
~/.cargo/bin/
@@ -52,18 +49,15 @@ jobs:
5249
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5350

5451
- name: Clippy
55-
uses: actions-rs/cargo@v1
56-
with:
57-
command: clippy
58-
args: --all-targets --all-features -- -D clippy::all'
52+
run: cargo clippy --all-targets --all-features -- -D clippy::all
5953
test:
6054
name: Test
6155
runs-on: ubuntu-latest
6256
steps:
63-
- uses: actions/checkout@v3
57+
- uses: actions/checkout@v4
6458

6559
- name: Cache Rust files
66-
uses: actions/cache@v3
60+
uses: actions/cache@v4
6761
with:
6862
path: |
6963
~/.cargo/bin/
@@ -77,6 +71,4 @@ jobs:
7771
run: sudo apt-get install -y zsh fish
7872

7973
- name: Run tests
80-
uses: actions-rs/cargo@v1
81-
with:
82-
command: test
74+
run: cargo test

0 commit comments

Comments
 (0)