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
run: |
docker run -d --name postgres \
-e POSTGRES_DB=polympr_test \
-e POSTGRES_USER=test \
-e POSTGRES_PASSWORD=test \
-p 5432:5432 \
postgres:16
until docker exec postgres pg_isready -U test; do
echo "Waiting for postgres..."
sleep 2
done
sudo apt-get update -qq && sudo apt-get install -y -qq postgresql > /dev/null
sudo systemctl start postgresql
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test';"
sudo -u postgres psql -c "CREATE DATABASE polympr_test OWNER test;"
- name: Install dependencies
run: npm install --ignore-scripts && deno install