From 60dde4675c279832c535a6024c48b20ccfbe1f08 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 26 Apr 2026 00:31:15 +0200 Subject: [PATCH] fix(ci): use deno install for unit tests, add postgres readiness check --- .gitea/workflows/test.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index f7dc9ae..c29e9cb 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -16,16 +16,12 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "20" - - uses: denoland/setup-deno@v2 with: deno-version: v2.x - name: Install dependencies - run: npm install --ignore-scripts + run: deno install - name: Run unit tests run: deno task test:unit @@ -59,8 +55,15 @@ jobs: with: deno-version: v2.x - - name: Install drizzle-kit - run: npm install --ignore-scripts + - name: Install dependencies + run: npm install --ignore-scripts && deno install + + - name: Wait for postgres + run: | + until pg_isready -h localhost -p 5432 -U test; do + echo "Waiting for postgres..." + sleep 2 + done - name: Apply migrations env: