ci: properly try to install libpcre on ubuntu if doesn't exist

This commit is contained in:
Ivan Folgueira Bande 2024-10-14 23:15:12 +02:00
parent b60084ef4d
commit 35f741a551
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -109,11 +109,10 @@ jobs:
- name: Run tests
run: |
sudo apt-get update
sudo apt-get install -y libpcre3 libpcre3-dev
postgres_enabled=0
if [ ${{ runner.os }} == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y libpcre3 libpcre3-dev
sudo docker run --rm -d -e POSTGRES_PASSWORD=test123 -p 5432:5432 postgres:15.4-alpine3.18
postgres_enabled=1
fi