Skip to content

Commit 24104af

Browse files
crumplecupclaude
andcommitted
ci: simplify CI workflow to essential checks on main
Replaced baroque CI with streamlined checks that only run on main branch: 1. Format check - Fail if cargo fmt would make changes 2. Cargo check - Fail on any warnings or errors (RUSTFLAGS: -D warnings) 3. Public tests - Run test-public feature (no auth required) Removed: - PR triggers (only push to main now) - Multi-OS matrix (ubuntu, macos, windows) - Multi-Rust version matrix (stable, beta) - Clippy job (warnings caught by cargo check) - Docs job - MSRV job - Complex caching setup This runs faster and is easier to maintain while still catching formatting issues, compilation problems, and test failures. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c6a2dda commit 24104af

1 file changed

Lines changed: 8 additions & 106 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,79 +3,14 @@ name: CI
33
on:
44
push:
55
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
86

97
env:
108
CARGO_TERM_COLOR: always
119
RUSTFLAGS: -D warnings
1210

1311
jobs:
14-
test:
15-
name: Test
16-
runs-on: ${{ matrix.os }}
17-
strategy:
18-
matrix:
19-
os: [ubuntu-latest, macos-latest, windows-latest]
20-
rust: [stable, beta]
21-
steps:
22-
- uses: actions/checkout@v4
23-
24-
- name: Install Rust
25-
uses: dtolnay/rust-toolchain@master
26-
with:
27-
toolchain: ${{ matrix.rust }}
28-
29-
- name: Cache cargo registry
30-
uses: actions/cache@v4
31-
with:
32-
path: ~/.cargo/registry
33-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
34-
35-
- name: Cache cargo index
36-
uses: actions/cache@v4
37-
with:
38-
path: ~/.cargo/git
39-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
40-
41-
- name: Cache cargo build
42-
uses: actions/cache@v4
43-
with:
44-
path: target
45-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
46-
47-
- name: Build
48-
run: cargo build --verbose
49-
50-
- name: Run tests
51-
run: cargo test --verbose
52-
53-
- name: Run tests (all features)
54-
run: cargo test --all-features --verbose
55-
56-
public-tests:
57-
name: Public Integration Tests (Free Tier)
58-
runs-on: ubuntu-latest
59-
steps:
60-
- uses: actions/checkout@v4
61-
62-
- name: Install Rust
63-
uses: dtolnay/rust-toolchain@stable
64-
65-
- name: Cache cargo build
66-
uses: actions/cache@v4
67-
with:
68-
path: target
69-
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
70-
71-
- name: Run public tests (no API key required)
72-
run: cargo test --features test-public --test public_feature_query_test
73-
env:
74-
RUST_LOG: info
75-
RUST_BACKTRACE: 1
76-
77-
fmt:
78-
name: Formatting
12+
ci:
13+
name: CI Checks
7914
runs-on: ubuntu-latest
8015
steps:
8116
- uses: actions/checkout@v4
@@ -88,44 +23,11 @@ jobs:
8823
- name: Check formatting
8924
run: cargo fmt --all -- --check
9025

91-
clippy:
92-
name: Clippy
93-
runs-on: ubuntu-latest
94-
steps:
95-
- uses: actions/checkout@v4
96-
97-
- name: Install Rust
98-
uses: dtolnay/rust-toolchain@stable
99-
with:
100-
components: clippy
101-
102-
- name: Run clippy
103-
run: cargo clippy --all-targets --all-features -- -D warnings
104-
105-
docs:
106-
name: Documentation
107-
runs-on: ubuntu-latest
108-
steps:
109-
- uses: actions/checkout@v4
110-
111-
- name: Install Rust
112-
uses: dtolnay/rust-toolchain@stable
26+
- name: Check for warnings and errors
27+
run: cargo check --all-targets
11328

114-
- name: Build documentation
115-
run: cargo doc --no-deps --all-features
29+
- name: Run public tests
30+
run: cargo test --features test-public
11631
env:
117-
RUSTDOCFLAGS: -D warnings
118-
119-
msrv:
120-
name: MSRV (1.75)
121-
runs-on: ubuntu-latest
122-
steps:
123-
- uses: actions/checkout@v4
124-
125-
- name: Install Rust 1.75
126-
uses: dtolnay/rust-toolchain@master
127-
with:
128-
toolchain: "1.75"
129-
130-
- name: Build with MSRV
131-
run: cargo build --verbose
32+
RUST_LOG: info
33+
RUST_BACKTRACE: 1

0 commit comments

Comments
 (0)