Compare commits

...

2 Commits

Author SHA1 Message Date
djalim 182342aab0 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
2026-04-26 00:43:11 +02:00
djalim d32758b310 fix(ci): use docker run instead of services for postgres 2026-04-26 00:41:20 +02:00
+7 -17
View File
@@ -29,16 +29,6 @@ jobs:
integration:
name: "Integration tests"
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: polympr_test
POSTGRES_USER: test
POSTGRES_PASSWORD: test
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
@@ -50,16 +40,16 @@ jobs:
with:
deno-version: v2.x
- name: Start postgres
run: |
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
- name: Wait for postgres
run: |
until bash -c 'echo > /dev/tcp/localhost/5432' 2>/dev/null; do
echo "Waiting for postgres..."
sleep 2
done
- name: Apply migrations
env:
POSTGRES_HOST: localhost