refactor: complete postgresql redis migration

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-07-10 19:00:14 +08:00
co-authored by Codex
parent 68e76d8138
commit 45e4b36225
381 changed files with 21571 additions and 20990 deletions
+26
View File
@@ -16,6 +16,29 @@ concurrency:
jobs:
backend:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:18-alpine
env:
POSTGRES_DB: codex_proxy
POSTGRES_USER: codex_proxy
POSTGRES_PASSWORD: codex_proxy
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U codex_proxy -d codex_proxy"
--health-interval 5s
--health-timeout 5s
--health-retries 10
redis:
image: redis:8-alpine
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 5s
--health-timeout 5s
--health-retries 10
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -38,6 +61,9 @@ jobs:
working-directory: backend
run: cargo clippy --all-targets --all-features --locked -- -D warnings
- name: Architecture boundaries
run: backend/scripts/check_architecture.sh
- name: Rust tests
working-directory: backend
run: cargo test --test main --locked