Skip to content

Commit 2d8e0c3

Browse files
committed
fix docker-compose command not found
1 parent f573e73 commit 2d8e0c3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
@@ -64,7 +64,7 @@ jobs:
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()

0 commit comments

Comments
 (0)