Skip to content

Commit f0253b8

Browse files
committed
refactor: Simplify CI workflow by merging jobs into single pipeline
- Remove separate build-check job (release build had limited value) - Consolidate into single ci job with optimized step order - Run fmt check first for fast failure feedback - Improve cache efficiency by using only debug profile
1 parent 08d0a96 commit f0253b8

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
test:
14-
name: Test Suite
13+
ci:
14+
name: CI
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
@@ -28,35 +28,13 @@ jobs:
2828
restore-keys: |
2929
${{ runner.os }}-cargo-
3030
31-
- name: Run unit tests
32-
run: |
33-
cargo test --lib --verbose
34-
cargo test --tests --verbose -- --skip integration_test
35-
3631
- name: Check formatting
3732
run: cargo fmt --check
3833

3934
- name: Run clippy
4035
run: cargo clippy -- -D warnings
4136

42-
build-check:
43-
name: Build Check
44-
runs-on: ubuntu-latest
45-
needs: test
46-
steps:
47-
- name: Checkout
48-
uses: actions/checkout@v4
49-
50-
- name: Cache cargo
51-
uses: actions/cache@v4
52-
with:
53-
path: |
54-
~/.cargo/registry
55-
~/.cargo/git
56-
target
57-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
58-
restore-keys: |
59-
${{ runner.os }}-cargo-
60-
61-
- name: Build binary
62-
run: cargo build --release
37+
- name: Run tests
38+
run: |
39+
cargo test --lib --verbose
40+
cargo test --tests --verbose -- --skip integration_test

0 commit comments

Comments
 (0)