From f26d82214bbbeb618b8d15a750e0e28736ff5f7e Mon Sep 17 00:00:00 2001 From: Milos Danilov Date: Tue, 11 Oct 2022 11:25:57 +0200 Subject: [PATCH] ci(gitlab-ci): add needs to speed-up pipeline --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7a9fe16..1e8811e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,6 +82,8 @@ test:e2e: <<: *setup_cache dependencies: - build + needs: + - build script: - *install_deps - GOOGLE_CHROME_VERSION=$(google-chrome --version | perl -pe '($_)=/([0-9]+([.][0-9]+)+)/') @@ -96,6 +98,8 @@ internal-publish: - if: '$CI_COMMIT_BRANCH == $CI_COMMIT_REF_NAME' dependencies: - build + needs: + - build script: - npm config set registry $NEXUS3_NPM_REGISTRY - infinity npm publish dist @@ -110,6 +114,9 @@ release-tag: dependencies: - build - test:e2e + needs: + - build + - test:e2e script: # we create temporary folder to hold newly cloned project - PROJECT_CLONE=$(mktemp -d)