From 0a8df4234d93455737372162fc07b9ebd635ebca Mon Sep 17 00:00:00 2001 From: sayan goswami Date: Fri, 2 Aug 2024 13:45:13 +0530 Subject: [PATCH] Update orca.yml --- .github/workflows/orca.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/orca.yml b/.github/workflows/orca.yml index 39f0abb4d..40488346a 100644 --- a/.github/workflows/orca.yml +++ b/.github/workflows/orca.yml @@ -141,15 +141,17 @@ jobs: run: | ../orca/bin/ci/self-test/before_install.sh ../orca/bin/ci/before_install.sh - # D11 requires yarn>=4.1.1 - npm cache clean --force - # Remove the previous yarn installed in the container. - npm uninstall -g yarn - npm install -g corepack - corepack enable - yarn set version 4.1.1 - yarn -v - + if [[ "$ORCA_ENABLE_NIGHTWATCH" == "TRUE" && "$ORCA_SUT_HAS_NIGHTWATCH_TESTS" && -d "$ORCA_YARN_DIR" ]]; then + # Install yarn 4.1.1. + cd "$ORCA_YARN_DIR" || exit + npm cache clean --force + # Remove the previous yarn installed in the container. + npm uninstall -g yarn + npm install -g corepack + corepack enable + yarn set version 4.1.1 + yarn -v + fi - name: Install run: |