Skip to content

Commit 803e0e8

Browse files
sonesukeclaude
andauthored
ci: deduplicate build steps in CI workflow (#86)
* ci: deduplicate build steps in CI workflow - Merge "Build and lint" and "Run unit tests" into one step to reuse clippy's build cache - Remove redundant "Check build" step (release build is done in "Test verbose mode") Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: fix rust-cache to use stable shared key across CI runs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 16ae9d0 commit 803e0e8

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,14 @@ jobs:
2525

2626
- name: Setup Rust cache
2727
uses: Swatinem/rust-cache@v2
28+
with:
29+
shared-key: v0-rust
30+
add-job-id-key: false
2831

2932
- name: Check formatting
3033
run: cargo fmt -- --check
3134

32-
- name: Build and lint
33-
run: cargo clippy --all-targets -- -D warnings
34-
35-
- name: Run unit tests
36-
run: cargo test --lib --all
37-
38-
- name: Check build
39-
run: cargo check --release
40-
41-
- name: Test verbose mode
35+
- name: Lint and test
4236
run: |
43-
# Build the CLI first
44-
cargo build --release
45-
46-
# Test verbose mode with a simple search
47-
./target/release/google-patent-cli search --query "test" --limit 1 --verbose || {
48-
echo "Verbose mode test failed"
49-
exit 1
50-
}
51-
52-
echo "Verbose mode test passed"
37+
cargo clippy --all-targets -- -D warnings
38+
cargo test --lib --all

0 commit comments

Comments
 (0)