From dcedce977c80dc36d288f3229a8731050d7cfec4 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 3 Aug 2024 19:46:09 -0400 Subject: [PATCH] CI: Replace docker-compose with 'docker compose' docker-compose has been removed from the github actions runners. `docker`'s compose command is the replacement. --- .github/workflows/ci.yml | 9 +++------ .github/workflows/compatibility.yml | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 128b29c..a8d81ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install docker-compose - run: sudo apt install docker-compose - - - name: Spawn docker-compose EventStoreDB container - run: docker-compose up --detach eventstore + - name: Spawn docker compose EventStoreDB container + run: docker compose up --detach eventstore - name: Determine the elixir version run: echo "ELIXIR_VERSION=$(grep -h elixir .tool-versions | awk '{ print $2 }' | awk -F - '{print $1}')" >> $GITHUB_ENV @@ -68,7 +65,7 @@ jobs: run: mix compile --warnings-as-errors --force - name: Test that the EventStoreDB container is alive - run: docker-compose exec --no-TTY eventstore true + run: docker compose exec --no-TTY eventstore true - name: Coveralls run: mix coveralls.github diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml index a7abca7..f713d82 100644 --- a/.github/workflows/compatibility.yml +++ b/.github/workflows/compatibility.yml @@ -26,14 +26,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Install docker-compose - run: sudo apt install docker-compose - - name: Set the EventStoreDB version run: sed -i 's|ghcr.io/eventstore/eventstore:ci|eventstore/eventstore:${{ matrix.eventstore }}-buster-slim|g' docker-compose.yml - - name: Spawn docker-compose EventStoreDB container - run: docker-compose up --detach eventstore + - name: Spawn docker compose EventStoreDB container + run: docker compose up --detach eventstore - name: Setup Elixir and Erlang versions uses: erlef/setup-beam@v1 @@ -74,7 +71,7 @@ jobs: run: mix compile --warnings-as-errors --force - name: Test that the EventStoreDB container is alive - run: docker-compose exec --no-TTY eventstore true + run: docker compose exec --no-TTY eventstore true - name: Run tests run: mix test --exclude version_incompatible