From daa33af9a0effce48ebbd35232987e6e2e112294 Mon Sep 17 00:00:00 2001 From: Jayahari Vavachan <10448770+jayahariv@users.noreply.github.com> Date: Fri, 21 Jan 2022 12:53:20 +0530 Subject: [PATCH] CBL-2504: Add submodule verification script (#2931) * CBL-2504: Add submodule verification script * Update MyUtilities submodule remote to couchbasedeps one. And checked out the latest from couchbase-master --- .github/workflows/check_deps.yml | 29 +++++++++++++++++++++++++++++ .gitmodules | 2 +- vendor/MYUtilities | 2 +- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/check_deps.yml diff --git a/.github/workflows/check_deps.yml b/.github/workflows/check_deps.yml new file mode 100644 index 000000000..c18ebf7c5 --- /dev/null +++ b/.github/workflows/check_deps.yml @@ -0,0 +1,29 @@ +# Copyright 2022-Present Couchbase, Inc. +# +# Use of this software is governed by the Business Source License included in +# the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that +# file, in accordance with the Business Source License, use of this software +# will be governed by the Apache License, Version 2.0, included in the file +# licenses/APL2.txt. + +name: Check Submodules + +on: + pull_request: + branches: + - '**' + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true # Only need one level for this check + fetch-depth: 0 # Pull all history or else we won't get branch info + + - name: Check Submodules + working-directory: ${{github.workspace}} + run: | + pip install termcolor + ./vendor/couchbase-lite-core/build_cmake/scripts/check_deps.py $GITHUB_BASE_REF ${{github.workspace}} diff --git a/.gitmodules b/.gitmodules index 82b832aa9..3b51c2c68 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/couchbase/couchbase-lite-core.git [submodule "vendor/MYUtilities"] path = vendor/MYUtilities - url = https://github.com/snej/MYUtilities.git + url = https://github.com/couchbasedeps/MYUtilities.git diff --git a/vendor/MYUtilities b/vendor/MYUtilities index 33e7e5820..81aad002f 160000 --- a/vendor/MYUtilities +++ b/vendor/MYUtilities @@ -1 +1 @@ -Subproject commit 33e7e5820433aa70d38e1c5e54b13e74a91ae57f +Subproject commit 81aad002f183fe8b0987195dc6294d3f55584fcf