Skip to content

Commit e38c33d

Browse files
committed
ci: Run docker system prune on macOS
1 parent 6f6d8cd commit e38c33d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/reusable-test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,16 @@ jobs:
126126
if: ${{ runner.os == 'macOS' }}
127127
uses: XRPLF/actions/cleanup-workspace@cf0433aa74563aead044a1e395610c96d65a37cf
128128

129-
- name: Spin up scylladb
129+
- name: Prune docker system (macOS)
130+
if: ${{ runner.os == 'macOS' }}
131+
run: |
132+
docker rm --force scylladb
133+
docker system prune --all --force --volumes
134+
135+
- name: Spin up scylladb (macOS)
130136
if: ${{ runner.os == 'macOS' }}
131137
timeout-minutes: 3
132138
run: |
133-
docker rm --force scylladb || true
134139
docker run \
135140
--detach \
136141
--name scylladb \
@@ -142,6 +147,9 @@ jobs:
142147
--memory 16G \
143148
scylladb/scylla
144149
150+
- name: Wait for scylladb to be healthy (macOS)
151+
if: ${{ runner.os == 'macOS' }}
152+
run: |
145153
until [ "$(docker inspect -f '{{.State.Health.Status}}' scylladb)" == "healthy" ]; do
146154
sleep 5
147155
done

0 commit comments

Comments
 (0)