diff --git a/.tekton/tasks/test-groups/test-ci-autoprofile-task.yaml b/.tekton/tasks/test-groups/test-ci-autoprofile-task.yaml index 89985c046..612ef0219 100644 --- a/.tekton/tasks/test-groups/test-ci-autoprofile-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-autoprofile-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-aws-fargate-task.yaml b/.tekton/tasks/test-groups/test-ci-aws-fargate-task.yaml index 53b9907f2..d724cf78e 100644 --- a/.tekton/tasks/test-groups/test-ci-aws-fargate-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-aws-fargate-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-aws-lambda-task.yaml b/.tekton/tasks/test-groups/test-ci-aws-lambda-task.yaml index 983a5520c..6e614fd0f 100644 --- a/.tekton/tasks/test-groups/test-ci-aws-lambda-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-aws-lambda-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-azure-container-services-task.yaml b/.tekton/tasks/test-groups/test-ci-azure-container-services-task.yaml index 0bb2aaddb..9add78e3c 100644 --- a/.tekton/tasks/test-groups/test-ci-azure-container-services-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-azure-container-services-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-general-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-general-task.yaml index 4e0ec1e11..095d40877 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-general-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-general-task.yaml @@ -108,6 +108,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v2-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v2-task.yaml index c72cef4f2..ffbb9069d 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v2-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v2-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v3-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v3-task.yaml index 8b0b99ada..2174f8683 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v3-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-aws-v3-task.yaml @@ -88,6 +88,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-azure-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-azure-task.yaml index 4a95555a6..e00e8b7b9 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-azure-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-azure-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-gcp-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-gcp-task.yaml index 4ba547d3b..b33a0faa6 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-gcp-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-cloud-gcp-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-database-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-database-task.yaml index 728a28be8..80788b231 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-database-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-database-task.yaml @@ -159,6 +159,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-frameworks-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-frameworks-task.yaml index 53265d785..466df7572 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-frameworks-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-frameworks-task.yaml @@ -104,6 +104,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-general-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-general-task.yaml index 0f738539f..382530139 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-general-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-general-task.yaml @@ -104,6 +104,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-logger-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-logger-task.yaml index e2ed08efa..8a5279272 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-logger-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-logger-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-messaging-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-messaging-task.yaml index 9e8aa95c9..d1f785393 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-messaging-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-messaging-task.yaml @@ -173,6 +173,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-misc-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-misc-task.yaml index c5b9f9a1c..79e4bd52a 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-misc-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-misc-task.yaml @@ -88,6 +88,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-collector-tracing-protocols-task.yaml b/.tekton/tasks/test-groups/test-ci-collector-tracing-protocols-task.yaml index c1efcd038..f9ce3a662 100644 --- a/.tekton/tasks/test-groups/test-ci-collector-tracing-protocols-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-collector-tracing-protocols-task.yaml @@ -94,6 +94,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-core-task.yaml b/.tekton/tasks/test-groups/test-ci-core-task.yaml index 656e7d949..755bd3bba 100644 --- a/.tekton/tasks/test-groups/test-ci-core-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-core-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-google-cloud-run-task.yaml b/.tekton/tasks/test-groups/test-ci-google-cloud-run-task.yaml index 3491decd8..98430a895 100644 --- a/.tekton/tasks/test-groups/test-ci-google-cloud-run-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-google-cloud-run-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-metrics-util-task.yaml b/.tekton/tasks/test-groups/test-ci-metrics-util-task.yaml index 29b113fc6..6dce74afb 100644 --- a/.tekton/tasks/test-groups/test-ci-metrics-util-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-metrics-util-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-opentelemetry-exporter-task.yaml b/.tekton/tasks/test-groups/test-ci-opentelemetry-exporter-task.yaml index 2165d1f67..5505b0278 100644 --- a/.tekton/tasks/test-groups/test-ci-opentelemetry-exporter-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-opentelemetry-exporter-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-opentelemetry-sampler-task.yaml b/.tekton/tasks/test-groups/test-ci-opentelemetry-sampler-task.yaml index a150928e2..e9fbd757b 100644 --- a/.tekton/tasks/test-groups/test-ci-opentelemetry-sampler-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-opentelemetry-sampler-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-serverless-collector-task.yaml b/.tekton/tasks/test-groups/test-ci-serverless-collector-task.yaml index c7d5543a3..d13cbf61b 100644 --- a/.tekton/tasks/test-groups/test-ci-serverless-collector-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-serverless-collector-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-serverless-task.yaml b/.tekton/tasks/test-groups/test-ci-serverless-task.yaml index bff98008e..7d69c8b82 100644 --- a/.tekton/tasks/test-groups/test-ci-serverless-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-serverless-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/tasks/test-groups/test-ci-shared-metrics-task.yaml b/.tekton/tasks/test-groups/test-ci-shared-metrics-task.yaml index 888c8a9e3..77a3a903a 100644 --- a/.tekton/tasks/test-groups/test-ci-shared-metrics-task.yaml +++ b/.tekton/tasks/test-groups/test-ci-shared-metrics-task.yaml @@ -86,6 +86,10 @@ spec: MODIFIED_FILES=$(git diff-tree --no-commit-id --name-only -r $(echo ${CIRCLE_COMPARE_URL} | cut -d/ -f 7)) GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES" diff --git a/.tekton/templates/test-task.yaml.template b/.tekton/templates/test-task.yaml.template index 1e8e09c48..fbba885aa 100644 --- a/.tekton/templates/test-task.yaml.template +++ b/.tekton/templates/test-task.yaml.template @@ -91,6 +91,11 @@ spec: GIT_COMMIT_DESC=$(git log --format=%B -n 1 $(params.revision)) fi + if ! command -v lerna &> /dev/null; then + echo "Lerna nor found. Installing..." + npm install -g lerna@8.1.8 || exit 1 + fi + echo "BASE_REVISION: $BASE_REVISION" echo "CIRCLE_COMPARE_URL: $CIRCLE_COMPARE_URL" echo "MODIFIED_FILES: $MODIFIED_FILES"