Skip to content

Add PHPUnit tests workflow for Turso DB#370

Draft
JanJakes wants to merge 1 commit into
trunkfrom
turso-db
Draft

Add PHPUnit tests workflow for Turso DB#370
JanJakes wants to merge 1 commit into
trunkfrom
turso-db

Conversation

@JanJakes

Copy link
Copy Markdown
Member

Summary

Adds a CI job that runs the SQLite driver unit tests (packages/mysql-on-sqlite) against Turso DB, a Rust reimplementation of SQLite.

The workflow:

  • Clones Turso at its latest release tag.
  • Builds the turso_sqlite3 crate as a cdylib (a drop-in for libsqlite3's C API).
  • Preloads it via LD_PRELOAD so PHP's pdo_sqlite resolves its sqlite3_* symbols against Turso instead of the system libsqlite3.
  • Runs PHPUnit.

The job is informational: Turso is in beta with a partially implemented SQLite C API, so failing tests are expected. The step uses continue-on-error: true so the job still succeeds and the test output is visible; we can track compatibility progress over time.

Refs: #204

Test plan

  • CI workflow "PHPUnit Tests (Turso DB)" runs on this PR.
  • turso_sqlite3 builds successfully from source.
  • The "Verify Turso shared library exposes SQLite3 C API" step prints sqlite3_* symbols.
  • The "Report SQLite version via Turso preload" step prints a version string (confirming LD_PRELOAD is wired up correctly).
  • PHPUnit runs to completion and prints a pass/fail summary.

@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes closed this Apr 23, 2026
@JanJakes JanJakes reopened this Apr 23, 2026
@JanJakes JanJakes force-pushed the turso-db branch 7 times, most recently from 7affb16 to 94c4537 Compare June 5, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant