fix(ci): install postgres via apt-get instead of docker
Tests / Unit tests (pull_request) Successful in 11s
Tests / Integration tests (pull_request) Failing after 25s

This commit is contained in:
2026-04-26 00:43:11 +02:00
parent d32758b310
commit 182342aab0
+4 -10
View File
@@ -42,16 +42,10 @@ jobs:
- name: Start postgres - name: Start postgres
run: | run: |
docker run -d --name postgres \ sudo apt-get update -qq && sudo apt-get install -y -qq postgresql > /dev/null
-e POSTGRES_DB=polympr_test \ sudo systemctl start postgresql
-e POSTGRES_USER=test \ sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test';"
-e POSTGRES_PASSWORD=test \ sudo -u postgres psql -c "CREATE DATABASE polympr_test OWNER test;"
-p 5432:5432 \
postgres:16
until docker exec postgres pg_isready -U test; do
echo "Waiting for postgres..."
sleep 2
done
- name: Install dependencies - name: Install dependencies
run: npm install --ignore-scripts && deno install run: npm install --ignore-scripts && deno install