@@ -42,15 +42,20 @@ jobs:
42
42
--mount type=volume,source=rootmount,target=/root \
43
43
--mount type=bind,source=./,target=/app \
44
44
-t hjwp/obeythetestinggoat-book-tester:latest \
45
- git submodule foreach 'git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && git fetch origin'
46
-
47
- # - name: check submodule branches
48
- # run: |
49
- # docker run --rm \
50
- # --mount type=volume,source=rootmount,target=/root \
51
- # --mount type=bind,source=./,target=/app \
52
- # -t hjwp/obeythetestinggoat-book-tester:latest \
53
- # bash -c "cd /app/source/chapter_01/superlists && git status && git branch -a"
45
+ git submodule foreach 'git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"'
46
+ docker run --rm \
47
+ --mount type=volume,source=rootmount,target=/root \
48
+ --mount type=bind,source=./,target=/app \
49
+ -t hjwp/obeythetestinggoat-book-tester:latest \
50
+ bash -c 'git submodule status | awk "{print $2}" | xargs -I% bash -c "cd % && git fetch"
51
+
52
+ - name : check submodule branches
53
+ run : |
54
+ docker run --rm \
55
+ --mount type=volume,source=rootmount,target=/root \
56
+ --mount type=bind,source=./,target=/app \
57
+ -t hjwp/obeythetestinggoat-book-tester:latest \
58
+ bash -c "cd /app/source/chapter_01/superlists && git status && git branch -a"
54
59
55
60
- name : test chapter 1
56
61
run : |
0 commit comments