Skip to content

Commit 8a08924

Browse files
committed
Do dir permissions for git
1 parent 980ebe7 commit 8a08924

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,24 @@ jobs:
1616
with:
1717
submodules: recursive
1818

19-
- name: build venv
19+
- name: upgrade dependencies
2020
run: |
2121
docker run --rm \
2222
--mount type=bind,source=./,target=/app \
2323
-t hjwp/obeythetestinggoat-book-tester:latest \
2424
bash -c "uv pip install --upgrade ."
2525
26+
- name: git mark dirs safe (due to volume mount perms issue)
27+
run: |
28+
docker run --rm \
29+
--mount type=bind,source=./,target=/app \
30+
-t hjwp/obeythetestinggoat-book-tester:latest \
31+
git config --global --add safe.directory /app
32+
docker run --rm \
33+
--mount type=bind,source=./,target=/app \
34+
-t hjwp/obeythetestinggoat-book-tester:latest \
35+
bash -c "ls -d source/*/superlists/ | xargs -n1 git config --global --add safe.directory"
36+
2637
- name: test chapter 1
2738
run: |
2839
docker run --rm \

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ RUN ln -s $HOME/.cargo/bin/uv /usr/bin/uv
2828

2929
RUN git config --global user.email "[email protected]" && \
3030
git config --global user.name "Elspeth See-Eye" && \
31-
git config --global init.defaultBranch main && \
32-
git config --global --add safe.directory /app
31+
git config --global init.defaultBranch main
3332

3433
WORKDIR /app
3534
RUN uv venv /venv

0 commit comments

Comments
 (0)