Skip to content

Commit 78bc232

Browse files
Fix: Install docker-compose in CI workflow
This commit addresses an error in the GitHub Actions CI workflow where `docker-compose: command not found` would occur. The `ubuntu-latest` runner does not include `docker-compose` by default. Changes: - Modified `.github/workflows/elixir.yml`: - Added a new step "Set up Docker Compose" in the `test` job. - This step runs `sudo apt-get update` and then `sudo apt-get install -y docker-compose` to make the `docker-compose` command available in the CI environment before it is used by subsequent steps.
1 parent 32fb720 commit 78bc232

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/elixir.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
- name: Checkout
1111
uses: actions/checkout@v2
1212

13+
- name: Set up Docker Compose
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y docker-compose
17+
1318
- name: Build Docker image
1419
run: docker build --build-arg MIX_ENV=test --tag code_comparison:latest .
1520

0 commit comments

Comments
 (0)