Skip to content

Commit efb91c2

Browse files
committed
Run tests on clean slate
Previously the volume was reused, and thus the existing files belonged to root, which prevented writing into them.
1 parent 94f86dd commit efb91c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ jobs:
7070
set -exu;
7171
for testFile in ${{ join(matrix.test-files, ' ') }};
7272
do
73-
docker compose -f ./tests/docker-compose.test-${testFile}.yml \
74-
up --exit-code-from=sut --abort-on-container-exit
73+
docker compose -f ./tests/docker-compose.test-${testFile}.yml down -v
74+
docker compose -f ./tests/docker-compose.test-${testFile}.yml up --exit-code-from=sut --abort-on-container-exit
7575
done
7676
7777
- name: Build nonroot image for "${{ matrix.variant }}"
@@ -91,6 +91,6 @@ jobs:
9191
set -exu;
9292
for testFile in ${{ join(matrix.test-files, ' ') }};
9393
do
94-
docker compose -f ./tests/docker-compose.test-${testFile}.yml \
95-
up --exit-code-from=sut --abort-on-container-exit
94+
docker compose -f ./tests/docker-compose.test-${testFile}.yml down -v
95+
docker compose -f ./tests/docker-compose.test-${testFile}.yml up --exit-code-from=sut --abort-on-container-exit
9696
done

0 commit comments

Comments
 (0)