@@ -6,8 +6,12 @@ permissions:
66on :
77 push :
88 branches : [ "main", "development" ]
9+ paths :
10+ - ' crates/**/*'
911 pull_request :
1012 branches : [ "main", "development" ]
13+ paths :
14+ - ' crates/**/*'
1115
1216env :
1317 CARGO_TERM_COLOR : always
@@ -17,10 +21,10 @@ jobs:
1721 runs-on : ubuntu-latest
1822 steps :
1923 - uses : actions/checkout@v4
20-
24+
2125 - name : Setup Rust
2226 uses : dtolnay/rust-toolchain@stable
23-
27+
2428 - name : Cache cargo registry
2529 uses : actions/cache@v4
2630 with :
@@ -30,26 +34,26 @@ jobs:
3034 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3135 restore-keys : |
3236 ${{ runner.os }}-cargo-
33-
37+
3438 # Removed target caching to ensure reproducible builds
3539 # Only cache registry/git (safe dependencies)
36-
40+
3741 - name : Build
3842 run : cargo build --verbose
39-
43+
4044 - name : Run tests
4145 run : cargo test --verbose
4246
4347 fmt :
4448 runs-on : ubuntu-latest
4549 steps :
4650 - uses : actions/checkout@v4
47-
51+
4852 - name : Setup Rust
4953 uses : dtolnay/rust-toolchain@stable
5054 with :
5155 components : rustfmt
52-
56+
5357 - name : Cache cargo registry
5458 uses : actions/cache@v4
5559 with :
@@ -59,20 +63,20 @@ jobs:
5963 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
6064 restore-keys : |
6165 ${{ runner.os }}-cargo-
62-
66+
6367 - name : Check formatting
6468 run : cargo fmt -- --check
6569
6670 lint :
6771 runs-on : ubuntu-latest
6872 steps :
6973 - uses : actions/checkout@v4
70-
74+
7175 - name : Setup Rust
7276 uses : dtolnay/rust-toolchain@stable
7377 with :
7478 components : clippy
75-
79+
7680 - name : Cache cargo registry
7781 uses : actions/cache@v4
7882 with :
8286 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
8387 restore-keys : |
8488 ${{ runner.os }}-cargo-
85-
89+
8690 # Removed target caching to ensure reproducible builds
8791 # Clippy will compile from scratch each time
88-
92+
8993 - name : Clippy
9094 run : cargo clippy --all-targets --all-features -- -D warnings
0 commit comments