deleted cargo config and fmt
Some checks failed
Rust / Test (push) Failing after 2m29s
Rust / Rustfmt (push) Successful in 22s
Rust / Clippy (push) Successful in 1m14s
Rust / Code coverage (push) Failing after 2m39s

This commit is contained in:
Alphonse Paix
2025-09-28 17:07:21 +02:00
parent 271aa87b9e
commit e5dc6a04b4
4 changed files with 25 additions and 7 deletions

View File

@@ -51,7 +51,17 @@ jobs:
--locked
- name: Create app user in Postgres
run: |
sudo apt-get update && sudo apt-get install postgresql-client
sudo apt-get update && sudo apt-get install postgresql-client -y
echo "Waiting for PostgreSQL to be ready..."
for i in {1..30}; do
if PGPASSWORD="password" psql -U postgres -h localhost -p 15432 -d postgres -c '\q' 2>/dev/null; then
echo "PostgreSQL is ready!"
break
fi
echo "Attempt $i/30: PostgreSQL not ready yet, waiting..."
sleep 2
done
CREATE_QUERY="CREATE USER ${APP_USER} WITH PASSWORD '${APP_USER_PWD}';"
PGPASSWORD="password" psql -U postgres -h localhost -p 15432 -c "${CREATE_QUERY}"
@@ -124,7 +134,17 @@ jobs:
--locked
- name: Create app user in Postgres
run: |
sudo apt-get update && sudo apt-get install postgresql-client
sudo apt-get update && sudo apt-get install postgresql-client -y
echo "Waiting for PostgreSQL to be ready..."
for i in {1..30}; do
if PGPASSWORD="password" psql -U postgres -h localhost -p 15432 -d postgres -c '\q' 2>/dev/null; then
echo "PostgreSQL is ready!"
break
fi
echo "Attempt $i/30: PostgreSQL not ready yet, waiting..."
sleep 2
done
CREATE_QUERY="CREATE USER ${APP_USER} WITH PASSWORD '${APP_USER_PWD}';"
PGPASSWORD="password" psql -U postgres -h localhost -p 15432 -c "${CREATE_QUERY}"