fix(ci): install postgres via apt-get instead of docker

This commit is contained in:
2026-04-26 00:43:11 +02:00
committed by djalim
parent f42df29f06
commit d1c3b93755
+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