Skip to content

Commit 84cfd0b

Browse files
Check submodule hash consistency (#229)
* check-cleanliness CI test * Oops, forgot to update gitmodules. (DUPLICATION IS EVIL) * call git-fleximod update before git diff check * Revert: Oops, forgot to update gitmodules. (DUPLICATION IS EVIL) * switch to git-fleximod test for hash consistency checking * update MOM6 submodule but forget to update gitmodules. This should result in CI failure * revert MOM6 submodule. This should fix in CI failure
1 parent 7d94ab5 commit 84cfd0b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/general-ci-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,21 @@ jobs:
4848
cd $GITHUB_WORKSPACE/CESM/components/mom/
4949
git fetch origin pull/${{ github.event.pull_request.number }}/head:pr-${{ github.event.pull_request.number }}
5050
git checkout pr-${{ github.event.pull_request.number }}
51+
git submodule update --init --recursive
5152
5253
- name: Checkout initial event (Push)
5354
if: ${{ github.event_name == 'push' }}
5455
run: |
5556
echo "Handling push"
5657
cd $GITHUB_WORKSPACE/CESM/components/mom/
5758
git checkout ${{ github.sha }}
59+
git submodule update --init --recursive
60+
61+
- name: Check submodule hash consistency
62+
run: |
63+
echo "Checking if .gitmodules and external hashes are consistent"
64+
cd $GITHUB_WORKSPACE/CESM/components/mom/
65+
../../bin/git-fleximod test
5866
5967
# Build the standalone mom using the ubuntu script.
6068
- name: Build Standalone MOM

0 commit comments

Comments
 (0)