feat: Add comprehensive test suite and cleanup step
All checks were successful
🚀 Docker Build and Push / build-and-push (15) (push) Successful in 5m54s
🚀 Docker Build and Push / build-and-push (16) (push) Successful in 6m0s
🚀 Docker Build and Push / build-and-push (17) (push) Successful in 5m56s
🚀 Docker Build and Push / build-and-push (18) (push) Successful in 6m4s

- Split validation into 4 granular CI steps (Config, Timescale, Vector, Hybrid)
- Added cleanup step for Docker images in CI
- Created SQL test scripts in tests/ for robustness
This commit is contained in:
2025-12-19 12:51:17 +01:00
parent 4ea4132653
commit df585b765a
5 changed files with 137 additions and 23 deletions

17
tests/test-1-config.sql Normal file
View File

@@ -0,0 +1,17 @@
-- Test 1: Configuration
\set ON_ERROR_STOP on
SELECT version();
SELECT extname, extversion FROM pg_extension;
DO $$
DECLARE
preload_libs text;
BEGIN
SELECT setting INTO preload_libs FROM pg_settings WHERE name = 'shared_preload_libraries';
IF preload_libs NOT LIKE '%timescaledb%' OR preload_libs NOT LIKE '%vchord%' THEN
RAISE EXCEPTION 'Missing shared_preload_libraries config. Found: %', preload_libs;
END IF;
RAISE NOTICE 'Configuration Check: OK';
END
$$;