Skip to content

Commit

Permalink
Merge pull request #222 from jolicode/fixed-ci
Browse files Browse the repository at this point in the history
Fixed CI
  • Loading branch information
lyrixx committed May 30, 2023
2 parents 24d2cee + 6da8555 commit 45bb1ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ jobs:
set -e
set -o pipefail
# Need to mount (replace the old one) the new directories layout to the web container
pipenv run inv up
cat > application/public/index.php <<'EOPHP'
<?php
$pdo = new PDO('pgsql:host=postgres;dbname=app', 'app', 'app');
Expand All @@ -77,4 +74,7 @@ jobs:
echo $pdo->query('SELECT * from test')->fetchAll() ? 'database OK' : 'database KO';
EOPHP
# FPM seems super slow to detect the change, we need to wait a bit
sleep 3
curl --fail --insecure --silent -H "Host: app.test" https://127.0.0.1 | grep "database OK"

0 comments on commit 45bb1ad

Please sign in to comment.