File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,29 +32,29 @@ jobs:
3232 sed -i "s|define('DB_PATH', '/var/lib/firebird/3.0/data/employee.fdb');|define('DB_PATH', 'test.fdb');|" inc/configuration.inc.php
3333
3434 - name : Start services
35- run : docker- compose up -d
35+ run : docker compose up -d
3636
3737 - name : Wait for services to be healthy
3838 run : |
3939 echo "Waiting for services to become healthy..."
4040 # This command will wait for the healthchecks defined in docker-compose.yml to pass.
4141 # It will exit with an error if the services do not become healthy within the timeout.
42- docker- compose ps
42+ docker compose ps
4343 max_wait=300
4444 current_wait=0
4545 while [ $current_wait -lt $max_wait ]; do
4646 if [ "$(docker-compose ps -q web | xargs docker inspect -f '{{.State.Health.Status}}')" = "healthy" ] &&
4747 [ "$(docker-compose ps -q firebird | xargs docker inspect -f '{{.State.Health.Status}}')" = "healthy" ]; then
4848 echo "Services are healthy!"
49- docker- compose logs
49+ docker compose logs
5050 exit 0
5151 fi
5252 echo -n "."
5353 sleep 5
5454 current_wait=$((current_wait + 5))
5555 done
5656 echo "Services did not become healthy in time."
57- docker- compose logs
57+ docker compose logs
5858 exit 1
5959
6060 - name : Run Playwright tests
6464
6565 - name : Stop services
6666 if : always()
67- run : docker- compose down
67+ run : docker compose down
6868
6969 - name : Restore config file
7070 if : always()
You can’t perform that action at this time.
0 commit comments