Skip to content

Commit 9136cd2

Browse files
committed
upgrade cache to v4
1 parent 5cd38a4 commit 9136cd2

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111
- release/**
1212
schedule:
13-
- cron: '0 3 * * 4'
13+
- cron: "0 3 * * 4"
1414

1515
jobs:
1616
## Run all default oriented feature sets across all platforms.
@@ -22,49 +22,49 @@ jobs:
2222
#os: [ubuntu-latest, macos-latest, windows-latest]
2323
os: [ubuntu-latest]
2424
steps:
25-
- uses: actions/checkout@v1
25+
- uses: actions/checkout@v1
2626

27-
- uses: actions-rs/toolchain@v1
28-
with:
29-
profile: minimal
30-
toolchain: stable
31-
override: true
27+
- uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: stable
31+
override: true
3232

33-
- name: cargo test --all --all-targets --all-features
34-
run: cargo test --all --all-targets --all-features
33+
- name: cargo test --all --all-targets --all-features
34+
run: cargo test --all --all-targets --all-features
3535

3636
## Execute the clippy checks
3737
cleanliness:
3838
name: cleanliness
3939
runs-on: ubuntu-latest
4040
needs: platform-matrix
4141
steps:
42-
- uses: actions/checkout@v1
42+
- uses: actions/checkout@v1
4343

44-
# not using the cargo cache here, since this differs significantly
45-
- name: cargo-all cache
46-
uses: actions/cache@v1
47-
with:
48-
path: ~/.cargo
49-
key: ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
50-
restore-keys: |
51-
${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}
52-
${{ runner.os }}-cargo-all
53-
${{ runner.os }}-cargo
44+
# not using the cargo cache here, since this differs significantly
45+
- name: cargo-all cache
46+
uses: actions/cache@v4
47+
with:
48+
path: ~/.cargo
49+
key: ${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}-${{ hashFiles('**/Cargo.lock') }}
50+
restore-keys: |
51+
${{ runner.os }}-cargo-all-${{ hashFiles('**/Cargo.toml') }}
52+
${{ runner.os }}-cargo-all
53+
${{ runner.os }}-cargo
5454
55-
- uses: actions-rs/toolchain@v1
56-
with:
57-
profile: minimal
58-
toolchain: stable
59-
components: rustfmt, clippy
60-
override: true
61-
62-
# Clippy
63-
- name: cargo clippy
64-
run: cargo clippy --lib --examples --tests --bins --all-features -- -D warnings
65-
# Rustfmt
66-
- name: cargo fmt
67-
run: cargo fmt -- --check
68-
# Audit
69-
- name: cargo audit
70-
run: cargo install cargo-audit && cargo audit --deny warnings
55+
- uses: actions-rs/toolchain@v1
56+
with:
57+
profile: minimal
58+
toolchain: stable
59+
components: rustfmt, clippy
60+
override: true
61+
62+
# Clippy
63+
- name: cargo clippy
64+
run: cargo clippy --lib --examples --tests --bins --all-features -- -D warnings
65+
# Rustfmt
66+
- name: cargo fmt
67+
run: cargo fmt -- --check
68+
# Audit
69+
- name: cargo audit
70+
run: cargo install cargo-audit && cargo audit --deny warnings

0 commit comments

Comments
 (0)