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