Skip to content

Commit

Permalink
CI: Replace docker-compose with 'docker compose'
Browse files Browse the repository at this point in the history
docker-compose has been removed from the github actions runners.
`docker`'s compose command is the replacement.
  • Loading branch information
the-mikedavis committed Aug 3, 2024
1 parent 37b46bb commit dcedce9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dcedce9

Please sign in to comment.