Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit 1a2754d

Browse files
committed
Add GIT_SUBMODULE_STRATEGY variable
Add GIT_SUBMODULE_STRATEGY variable to start git submodule for gitlab-ci, More detail to https://docs.gitlab.com/ee/ci/git_submodules.html#using-git-submodules-in-your-ci-jobs. Remove git submodule script: git submodule init && git submodule update.
1 parent 8100731 commit 1a2754d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ stages:
66
- test
77
- build
88

9+
variables:
10+
GIT_SUBMODULE_STRATEGY: recursive
11+
912
before_script:
10-
- npm install
11-
- git submodule init && git submodule update
13+
- npm i
1214

1315
test:
1416
stage: test

0 commit comments

Comments
 (0)