Skip to content

Commit

Permalink
chore: allow to run CI manually from GitHub and updated kash [additio…
Browse files Browse the repository at this point in the history
…nal tests]
  • Loading branch information
claustres committed Apr 19, 2024
1 parent ef3a52f commit b4850fd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion scripts/init_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ THIS_DIR=$(dirname "$THIS_FILE")
### Github Actions

init_github_run_tests() {
install_reqs yq age sops nvm node16 node18 node20 mongo4 mongo5 mongo6 cc_test_reporter
install_reqs yq age sops nvm node16 mongo4 cc_test_reporter
}

init_github_build_app() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/kash
Submodule kash updated 2 files
+541 −125 kash.sh
+20 −4 scripts/run_tests.sh
18 changes: 4 additions & 14 deletions scripts/setup_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,15 @@ else
;;
esac
done

shift $((OPTIND-1))
WORKSPACE_DIR="$1"

# NOTE: cloning krawler could be avoided if we could parse app_version from tag/branch name instead
# In this case, the kli would clone krawler
GIT_OPS="--recurse-submodules"
if [ -n "$WORKSPACE_TAG" ] || [ -n "$WORKSPACE_BRANCH" ]; then
GIT_OPS="$GIT_OPS --branch ${WORKSPACE_TAG:-$WORKSPACE_BRANCH}"
fi
git clone --depth 1 $GIT_OPS "$GITHUB_URL/kalisio/krawler.git" "$WORKSPACE_DIR/krawler"

DEVELOPMENT_REPO_URL="$GITHUB_URL/kalisio/development.git"

# unset KALISIO_DEVELOPMENT_DIR because we want kli to clone everything in $WORKSPACE_DIR
unset KALISIO_DEVELOPMENT_DIR
# Clone project in the workspace
git_shallow_clone "$GITHUB_URL/kalisio/krawler.git" "$WORKSPACE_DIR/krawler" "${WORKSPACE_TAG:-${WORKSPACE_BRANCH:-}}"
fi

# clone development in $WORKSPACE_DIR
DEVELOPMENT_DIR="$WORKSPACE_DIR/development"
git clone --depth 1 "$DEVELOPMENT_REPO_URL" "$DEVELOPMENT_DIR"
setup_lib_workspace "$WORKSPACE_DIR" "$DEVELOPMENT_REPO_URL"

end_group "Setting up workspace ..."

0 comments on commit b4850fd

Please sign in to comment.