From d4343f566fce1462c8c8756a8c8726e2cf5ab90f Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Date: Mon, 24 Feb 2025 22:51:41 -0800 Subject: [PATCH] rn cache: test full cycle --- .github/workflows/callable-e2e-test-detox.yml | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/callable-e2e-test-detox.yml b/.github/workflows/callable-e2e-test-detox.yml index 90a69c45e23..63700bc64a7 100644 --- a/.github/workflows/callable-e2e-test-detox.yml +++ b/.github/workflows/callable-e2e-test-detox.yml @@ -121,24 +121,25 @@ jobs: echo "steps.modules-cache.outputs.cache-hit: ${{ steps.modules-cache.outputs.cache-hit }}" echo "steps.pods-cache.outputs.cache-hit: ${{ steps.pods-cache.outputs.cache-hit }}" echo "steps.detox-build-cache.outputs.cache-hit: ${{ steps.detox-build-cache.outputs.cache-hit }}" + echo "${{ inputs.test_name }}-detox-build-${{ hashFiles(steps.cache_paths.outputs.YARN_LOCK_PATH, steps.cache_paths.outputs.POD_LOCK_PATH, '~/lerna_versions.json') }}" - - name: Detox Build - if: steps.detox-build-cache.outputs.cache-hit != 'true' || steps.modules-cache.outputs.cache-hit != 'true' || steps.pods-cache.outputs.cache-hit != 'true' - run: | - detox build -c ios.sim.debug - env: - JEST_JUNIT_OUTPUT_DIR: reports/junit - JEST_JUNIT_OUTPUT_NAME: detox-test-results.xml - working-directory: ${{ inputs.working_directory }} - shell: bash + # - name: Detox Build + # if: steps.detox-build-cache.outputs.cache-hit != 'true' || steps.modules-cache.outputs.cache-hit != 'true' || steps.pods-cache.outputs.cache-hit != 'true' + # run: | + # detox build -c ios.sim.debug + # env: + # JEST_JUNIT_OUTPUT_DIR: reports/junit + # JEST_JUNIT_OUTPUT_NAME: detox-test-results.xml + # working-directory: ${{ inputs.working_directory }} + # shell: bash - - name: Start the http-server and host the oidc signout page locally (background). - if: ${{ inputs.host_signout_page }} - run: yarn host:signout - working-directory: ${{ inputs.working_directory }} - shell: bash - - name: Detox run - run: | - $GITHUB_WORKSPACE/amplify-js/scripts/retry-yarn-script.sh -s 'detox test -c ios.sim.debug -u' -n 3 - working-directory: ${{ inputs.working_directory }} - shell: bash + # - name: Start the http-server and host the oidc signout page locally (background). + # if: ${{ inputs.host_signout_page }} + # run: yarn host:signout + # working-directory: ${{ inputs.working_directory }} + # shell: bash + # - name: Detox run + # run: | + # $GITHUB_WORKSPACE/amplify-js/scripts/retry-yarn-script.sh -s 'detox test -c ios.sim.debug -u' -n 3 + # working-directory: ${{ inputs.working_directory }} + # shell: bash