From 21cd8237047793dbfbad9ac296bc9fe84aa8f03b Mon Sep 17 00:00:00 2001 From: xa-x Date: Mon, 16 Nov 2026 05:36:01 +0300 Subject: [PATCH] Release 0.3.1, and run the tests on MySQL in CI CI ran Postgres and libSQL but not MySQL, so the MySQL driver went unchecked on every change. It passes the whole suite; this adds a MySQL 8.4 service so it stays that way. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/ci.yml | 9 +++++++++ package.json | 2 +- src/version.ts | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5573a2c..dd99b26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,13 @@ jobs: libsql: image: ghcr.io/tursodatabase/libsql-server:latest ports: ["8080:8080"] + mysql: + image: mysql:8.4 + env: + MYSQL_ROOT_PASSWORD: onebase + MYSQL_DATABASE: onebase + ports: ["3306:3306"] + options: --health-cmd "mysqladmin ping -h 127.0.0.1 -ponebase" --health-interval 2s --health-timeout 5s --health-retries 30 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 @@ -33,6 +40,8 @@ jobs: env: TEST_POSTGRES_URL: postgres://postgres:onebase@127.0.0.1:5432/onebase TEST_LIBSQL_URL: http://127.0.0.1:8080 + # Without TLS, MySQL's default sign-in needs the server's public key. + TEST_MYSQL_URL: mysql://root:onebase@127.0.0.1:3306/onebase?allowPublicKeyRetrieval=true - name: Doctor on every example run: for d in examples/*/; do echo "== $d"; (cd "$d" && bun ../../src/cli.ts doctor) || exit 1; done - name: Site builds diff --git a/package.json b/package.json index 311b8fd..7715877 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "onebase", - "version": "0.3.0", + "version": "0.3.1", "description": "A lightweight, Convex-style reactive backend on Bun + SQLite that ships as a single binary.", "license": "MIT", "repository": { diff --git a/src/version.ts b/src/version.ts index c28ce40..a7c1c93 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,6 +1,6 @@ // onebase's own version, and how versions compare. -export const VERSION = "0.3.0"; +export const VERSION = "0.3.1"; /** [major, minor, patch] of "v1.2.3" or "1.2.3-beta"; null when it isn't a version. */ export function parseVersion(text: string): [number, number, number] | null {