fix(ci): install postgres via apt-get instead of docker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user