Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(ci): provision postgres for backend tests
Jiayuan Zhang6b6e8ac4e44a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 033c78a190..afe63e0ea0 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -43,6 +43,22 @@ jobs:backend:runs-on: ubuntu-latest+ services:+ postgres:+ image: pgvector/pgvector:pg17+ env:+ POSTGRES_DB: multica+ POSTGRES_USER: multica+ POSTGRES_PASSWORD: multica+ ports:+ - 5432:5432+ options: >-+ --health-cmd "pg_isready -U multica -d multica"+ --health-interval 5s+ --health-timeout 5s+ --health-retries 20+ env:+ DATABASE_URL: postgres://multica:multica@localhost:5432/multica?sslmode=disablesteps:- name: Checkoutuses: actions/checkout@v6@@ -56,5 +72,8 @@ jobs:- name: Buildrun: cd server && go build ./...+ - name: Run migrations+ run: cd server && go run ./cmd/migrate up+- name: Testrun: cd server && go test ./...