Skip to content

Commit fad5eee

Browse files
committed
Add CI jobs: fmt, clippy and sqlite integration
Add dedicated GitHub Actions jobs for code quality and integration testing: a fmt job (uses rustfmt to check formatting), a clippy job (runs cargo clippy with -D warnings), and an integration-sqlite job (runs a SQLite integration smoke test for the tideorm package). Each job includes checkout, Rust toolchain setup, and cargo caching to speed CI runs.
1 parent 8bb2685 commit fad5eee

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,42 @@ env:
1010
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
1111

1212
jobs:
13+
fmt:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
20+
- name: Install Rust
21+
uses: dtolnay/rust-toolchain@stable
22+
with:
23+
components: rustfmt
24+
25+
- name: Cache cargo
26+
uses: Swatinem/rust-cache@v2
27+
28+
- name: Check formatting
29+
run: cargo fmt --all --check
30+
31+
clippy:
32+
runs-on: ubuntu-latest
33+
34+
steps:
35+
- name: Checkout
36+
uses: actions/checkout@v6
37+
38+
- name: Install Rust
39+
uses: dtolnay/rust-toolchain@stable
40+
with:
41+
components: clippy
42+
43+
- name: Cache cargo
44+
uses: Swatinem/rust-cache@v2
45+
46+
- name: Run clippy
47+
run: cargo clippy --workspace --all-targets -- -D warnings
48+
1349
test:
1450
runs-on: ubuntu-latest
1551
strategy:
@@ -36,6 +72,22 @@ jobs:
3672
- name: Test
3773
run: cargo test --lib ${{ matrix.feature-set }}
3874

75+
integration-sqlite:
76+
runs-on: ubuntu-latest
77+
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v6
81+
82+
- name: Install Rust
83+
uses: dtolnay/rust-toolchain@stable
84+
85+
- name: Cache cargo
86+
uses: Swatinem/rust-cache@v2
87+
88+
- name: Run SQLite integration test
89+
run: cargo test --package tideorm --test sqlite_ci_smoke_test --no-default-features --features sqlite,runtime-tokio
90+
3991
docs:
4092
runs-on: ubuntu-latest
4193

0 commit comments

Comments
 (0)