@davoodmehraban89 / VELYQOR / commits / b0a97d5
Fork 0

Intelligence, Advanced Charting & Trading Platform

Phase 1: verify persistence invariants on PostgreSQL 18

davoodmehraban89 committed Oct 7, 2026 at 00:23 UTC b0a97d5b03459c9ad6a8e616f2aacffe56cf358b
1 file changed +35
.github/workflows/ci.yml
+35
@@ -32,3 +32,38 @@ jobs:
32
33 - name: Verify
34 run: pnpm verify
35 +
36 + postgres-invariants:
37 + runs-on: ubuntu-latest
38 + timeout-minutes: 10
39 + services:
40 + postgres:
41 + image: postgres:18
42 + env:
43 + POSTGRES_USER: postgres
44 + POSTGRES_PASSWORD: postgres
45 + POSTGRES_DB: velyqor_test
46 + ports:
47 + - 5432:5432
48 + options: >-
49 + --health-cmd "pg_isready -U postgres -d velyqor_test"
50 + --health-interval 5s
51 + --health-timeout 5s
52 + --health-retries 10
53 + env:
54 + PGPASSWORD: postgres
55 + steps:
56 + - name: Checkout
57 + uses: actions/checkout@v4
58 +
59 + - name: Apply PostgreSQL migrations
60 + run: |
61 + for file in db/migrations/*.sql; do
62 + psql -h localhost -U postgres -d velyqor_test -v ON_ERROR_STOP=1 -f "$file"
63 + done
64 +
65 + - name: Execute persistence invariants
66 + run: |
67 + for file in db/tests/*.sql; do
68 + psql -h localhost -U postgres -d velyqor_test -v ON_ERROR_STOP=1 -f "$file"
69 + done