Skip to content

Commit b148328

Browse files
ci: Update to Docker Compose V2 syntax
This commit refactors the `ci.yml` workflow to use the modern Docker Compose V2 syntax (`docker compose` instead of `docker-compose`). The manual installation step for the Docker Compose plugin has been removed, as the GitHub Actions runner environment includes a compatible version of Docker Compose V2 by default. This simplifies the workflow and relies on the standard tooling provided by the runner.
1 parent 16d9670 commit b148328

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,8 @@ jobs:
5353
echo "ANTIFRAUD_EXTERNAL_PORT=8081" >> .env
5454
echo "ANTIFRAUD_CACHE_MS=1000" >> .env
5555
56-
- name: Install Docker Compose v1
57-
run: |
58-
sudo apt-get update
59-
sudo apt-get install -y docker-compose-plugin
60-
docker-compose version
61-
6256
- name: Build and run Docker containers
63-
run: docker-compose up -d --build
57+
run: docker compose up -d --build
6458

6559
- name: Wait for services to be healthy
6660
run: |
@@ -69,7 +63,7 @@ jobs:
6963
7064
- name: Run tests and generate coverage report 🛡️
7165
run: >
72-
docker-compose exec -T web sh -c
66+
docker compose exec -T web sh -c
7367
"coverage run manage.py test && coverage xml"
7468
7569
- name: Upload coverage to Codecov 🚀

0 commit comments

Comments
 (0)