Skip to content

Commit

Permalink
rn cache: test full cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwin Kumar committed Feb 25, 2025
1 parent d23126e commit d4343f5
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/callable-e2e-test-detox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d4343f5

Please sign in to comment.