Skip to content

Commit dabcce6

Browse files
committed
chore: exclude couchbase from the build
1 parent 0373fff commit dabcce6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/changed-modules.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ set -euxo pipefail
3838
# ALL_CHANGED_FILES=".github/release-drafter.yml" ./.github/scripts/changed-modules.sh
3939
# Expected output: []
4040
#
41+
# 9. A excluded module is modified:
42+
# ALL_CHANGED_FILES="packages/modules/couchbase/a.txt" ./.github/scripts/changed-modules.sh
43+
# Expected output: []
44+
#
4145
# There is room for improvement in this script. For example, it could detect if the changes applied to the docs or the .github dirs, and then do not include any module in the list.
4246
# But then we would need to verify the CI scripts to ensure that the job receives the correct modules to build.
4347

@@ -56,7 +60,7 @@ while IFS= read -r file; do
5660
done < <(find "${ROOT_DIR}" -maxdepth 1 -type f -not -name "package.json" -not -name "package-lock.json")
5761

5862
# define an array of modules that won't be part of the build
59-
readonly no_build_modules=()
63+
readonly no_build_modules=("couchbase")
6064

6165
# modules is an array that will store the paths of all the modules in the repository.
6266
modules=()

0 commit comments

Comments
 (0)