Skip to content

Commit 9ad7b0f

Browse files
committed
drop a step, try and test another chapter
1 parent d183929 commit 9ad7b0f

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,34 +43,32 @@ jobs:
4343
--mount type=bind,source=./,target=/app \
4444
-t hjwp/obeythetestinggoat-book-tester:latest \
4545
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'
51-
docker run --rm \
52-
--mount type=volume,source=rootmount,target=/root \
53-
--mount type=bind,source=./,target=/app \
54-
-t hjwp/obeythetestinggoat-book-tester:latest \
55-
bash -c 'git submodule status | cut -d" " -f3 | xargs -P0 -I% bash -c "echo %"'
5646
docker run --rm \
5747
--mount type=volume,source=rootmount,target=/root \
5848
--mount type=bind,source=./,target=/app \
5949
-t hjwp/obeythetestinggoat-book-tester:latest \
6050
bash -c 'git submodule status | cut -d" " -f3 | xargs -P0 -I% bash -c "cd % && git fetch"'
6151
62-
- name: check submodule branches
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"
59+
60+
- name: test chapter 1
6361
run: |
6462
docker run --rm \
6563
--mount type=volume,source=rootmount,target=/root \
6664
--mount type=bind,source=./,target=/app \
6765
-t hjwp/obeythetestinggoat-book-tester:latest \
68-
bash -c "cd /app/source/chapter_01/superlists && git status && git branch -a"
66+
bash -c "make test_chapter_01"
6967
70-
- name: test chapter 1
68+
- name: test chapter 2 unittest
7169
run: |
7270
docker run --rm \
7371
--mount type=volume,source=rootmount,target=/root \
7472
--mount type=bind,source=./,target=/app \
7573
-t hjwp/obeythetestinggoat-book-tester:latest \
76-
bash -c "make test_chapter_01"
74+
bash -c "make test_chapter_02_unittest"

0 commit comments

Comments
 (0)