Skip to content

Commit cd77f99

Browse files
committed
Add tests to ensure that /tmp volume mount works
1 parent f8fae0f commit cd77f99

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/run-tests-action.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,27 @@ jobs:
4545
uv venv --python 3.10
4646
uv pip install -r tests/requirements.txt
4747
48-
- name: Check Docker can write on /tmp
48+
- name: Create local directory for volume mount
49+
run: |
50+
mkdir -p /tmp/test-volume
51+
chmod 777 /tmp/test-volume
52+
ls -la /tmp/test-volume
53+
54+
- name: Run Docker container with volume mount and write file
4955
run: |
5056
docker run --rm \
5157
-v /tmp/test-volume:/app/data \
5258
alpine:latest \
53-
/bin/sh -c "echo 'Hello from Docker!' > /app/data/test.txt"
59+
/bin/sh -c "echo 'Hello from Docker!' > /app/data/test.txt && ls -la /app/data"
60+
61+
- name: Debug - List contents of /tmp
62+
run: ls -la /tmp
63+
64+
- name: Debug - List contents of /tmp/test-volume
65+
run: ls -la /tmp/test-volume
66+
67+
- name: Verify file was written to local volume
68+
run: |
5469
if [ -f /tmp/test-volume/test.txt ]; then
5570
echo "File exists in mounted volume"
5671
cat /tmp/test-volume/test.txt

0 commit comments

Comments
 (0)