Skip to content

Commit 6833275

Browse files
committed
ci: add step to assert git submodules in test workflow
Signed-off-by: Alfi Maulana <[email protected]>
1 parent 2008ebd commit 6833275

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ jobs:
1111
steps:
1212
- name: Checkout Project
1313
uses: actions/[email protected]
14+
15+
- name: Assert Git Submodules
16+
run: |
17+
ACTUAL=$(git submodule status)
18+
EXPECTED="bea29a84b6c55a49fef34be3e7a17498c633b6d9 project-starter (v1.2.0)"
19+
if [ "$OUT" != "$EXPECTED" ]; then
20+
echo "expected: $EXPECTED\nactual: $ACTUAL"
21+
exit 1
22+
fi

0 commit comments

Comments
 (0)