Skip to content

Commit 3142a15

Browse files
author
bestia.dev
committed
action cache
1 parent b12e434 commit 3142a15

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: rust_fmt_auto_build_test
22

33
on:
4-
# push to any branch
54
push:
6-
7-
# any pull requests
5+
branches: [ main ]
86
pull_request:
7+
branches: [ main ]
98

109
env:
1110
CARGO_TERM_COLOR: always
@@ -23,32 +22,32 @@ jobs:
2322
run: cargo fmt -- --check
2423

2524
- name: Run cache for rust dependencies
26-
uses: Swatinem/[email protected].3
25+
uses: Swatinem/[email protected].7
2726

2827
- name: Configure sccache
2928
run: printf "RUSTC_WRAPPER=sccache\n" >> $GITHUB_ENV; printf "SCCACHE_GHA_ENABLED=true\n" >> $GITHUB_ENV
3029

3130
- name: Run sccache-cache for artifacts
32-
uses: mozilla-actions/[email protected]
31+
uses: mozilla-actions/[email protected]
32+
33+
- name: cargo clippy --no-deps
34+
run: cargo clippy --no-deps
3335

3436
- name: install and cache cargo-auto
35-
uses: baptiste0928/cargo-install@v3.0.0
37+
uses: baptiste0928/cargo-install@v3.3.0
3638
with:
3739
crate: cargo-auto
3840

3941
- name: Cache for automation tasks
40-
uses: actions/cache@v4.0.0
42+
uses: actions/cache@v4.2.2
4143
with:
4244
path: |
4345
automation_tasks_rs/.file_hashes.json
4446
automation_tasks_rs/target
45-
automation_tasks_rs/Cargo.toml
46-
automation_tasks_rs/Cargo.lock
4747
key: automation_tasks_rs
4848

4949
- name: cargo auto build
5050
run: cargo auto build
5151

5252
- name: cargo auto test
5353
run: cargo auto test
54-

0 commit comments

Comments
 (0)