From 2d45e36f3f5c91386b8784421db7bafedcca5686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Fri, 22 Aug 2025 10:29:38 +0100 Subject: [PATCH 1/3] node cache --- .github/actions/setup-e2e-env/action.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup-e2e-env/action.yml b/.github/actions/setup-e2e-env/action.yml index cb4a2e30..212a6a59 100644 --- a/.github/actions/setup-e2e-env/action.yml +++ b/.github/actions/setup-e2e-env/action.yml @@ -1,4 +1,4 @@ -name: 'Setup E2E Test Environment' + name: 'Setup E2E Test Environment' description: 'Sets up the environment for running E2E tests' inputs: platform: @@ -80,6 +80,10 @@ inputs: description: 'Target for which the keystore is being configured (e.g., qa, flask, main)' required: false default: 'qa' + skip-yarn-install: + description: 'Whether to skip yarn install (assumes node_modules already available)' + required: false + default: 'false' runs: using: 'composite' @@ -188,18 +192,26 @@ runs: run: corepack enable && corepack prepare yarn@${{ inputs.yarn-version }} --activate shell: bash - - name: Restore Yarn cache + - name: Restore Yarn cache (cross-workflow) + if: ${{ inputs.skip-yarn-install == 'false' }} uses: actions/cache@v4 with: path: | node_modules - key: ${{ inputs.cache-prefix }}-yarn-${{ inputs.platform }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }} + ~/.yarn/cache + ~/.cache/yarn + key: ${{ inputs.cache-prefix }}-yarn-v2-${{ runner.os }}-${{ hashFiles('yarn.lock', 'package.json') }} restore-keys: | - ${{ inputs.cache-prefix }}-yarn-${{ inputs.platform }}-${{ runner.os }}- + ${{ inputs.cache-prefix }}-yarn-v2-${{ runner.os }}- + ${{ inputs.cache-prefix }}-yarn-v1-${{ runner.os }}- - name: Install JavaScript dependencies + if: ${{ inputs.skip-yarn-install == 'false' }} id: yarn-install - run: yarn install --frozen-lockfile + run: | + echo "📦 Installing JavaScript dependencies..." + yarn install --frozen-lockfile --prefer-offline + echo "✅ JavaScript dependencies installed successfully" shell: bash env: NODE_OPTIONS: --max-old-space-size=4096 # Increase memory limit for Node.js due to large dependencies From 74d5181500bb9ecf3e1017762f245f8014e175b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Fri, 22 Aug 2025 10:35:53 +0100 Subject: [PATCH 2/3] fmt --- .github/actions/setup-e2e-env/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/setup-e2e-env/action.yml b/.github/actions/setup-e2e-env/action.yml index 212a6a59..ec39110e 100644 --- a/.github/actions/setup-e2e-env/action.yml +++ b/.github/actions/setup-e2e-env/action.yml @@ -1,4 +1,4 @@ - name: 'Setup E2E Test Environment' +name: 'Setup E2E Test Environment' description: 'Sets up the environment for running E2E tests' inputs: platform: From fe0f6a116317f561d573894f9354b99deb22089e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o?= Date: Fri, 22 Aug 2025 10:40:55 +0100 Subject: [PATCH 3/3] comment apt packages --- .github/actions/setup-e2e-env/action.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/actions/setup-e2e-env/action.yml b/.github/actions/setup-e2e-env/action.yml index ec39110e..b0363f1b 100644 --- a/.github/actions/setup-e2e-env/action.yml +++ b/.github/actions/setup-e2e-env/action.yml @@ -119,18 +119,18 @@ runs: java-version: ${{ inputs.jdk-version }} distribution: ${{ inputs.jdk-distribution }} - - name: Install required emulator dependencies - if: ${{ inputs.platform == 'android' && runner.os == 'Linux' }} - run: | - sudo apt-get update - sudo apt-get install -y \ - libpulse0 \ - libglu1-mesa \ - libnss3 \ - libxss1 - - echo "✅ Linux dependencies installed successfully" - shell: bash + #- name: Install required emulator dependencies + # if: ${{ inputs.platform == 'android' && runner.os == 'Linux' }} + # run: | + # sudo apt-get update + # sudo apt-get install -y \ + # libpulse0 \ + # libglu1-mesa \ + # libnss3 \ + # libxss1 +# + # echo "✅ Linux dependencies installed successfully" + # shell: bash ## Android SDK Setup (SDK pre-installed in container)