From: Pablo Zmdl Date: Tue, 21 Oct 2025 09:23:00 +0000 (+0200) Subject: Run tests on clean slate X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=efb91c27efdc282e39e286143eeb9046cf5e5d3a;p=roundcube-roundcubemail-docker.git Run tests on clean slate Previously the volume was reused, and thus the existing files belonged to root, which prevented writing into them. --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1ce41a..6ad30cf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,8 +70,8 @@ jobs: set -exu; for testFile in ${{ join(matrix.test-files, ' ') }}; do - docker compose -f ./tests/docker-compose.test-${testFile}.yml \ - up --exit-code-from=sut --abort-on-container-exit + docker compose -f ./tests/docker-compose.test-${testFile}.yml down -v + docker compose -f ./tests/docker-compose.test-${testFile}.yml up --exit-code-from=sut --abort-on-container-exit done - name: Build nonroot image for "${{ matrix.variant }}" @@ -91,6 +91,6 @@ jobs: set -exu; for testFile in ${{ join(matrix.test-files, ' ') }}; do - docker compose -f ./tests/docker-compose.test-${testFile}.yml \ - up --exit-code-from=sut --abort-on-container-exit + docker compose -f ./tests/docker-compose.test-${testFile}.yml down -v + docker compose -f ./tests/docker-compose.test-${testFile}.yml up --exit-code-from=sut --abort-on-container-exit done