@@ -62,35 +62,35 @@ jobs:
6262 uses : ./amplify-data/.github/actions/load-verdaccio-with-amplify-data
6363 - name : Make script executable
6464 run : chmod +x ./amplify-data/scripts/retry-npm-script.sh
65- # - name: Run cypress tests for webpack e2e test dev
66- # shell: bash
67- # working-directory: ./amplify-data
68- # env:
69- # E2E_FRAMEWORK: ${{ inputs.framework }}
70- # E2E_SAMPLE_NAME: ${{ matrix.sample_name }}
71- # E2E_SPEC: ${{ inputs.spec }}
72- # E2E_BROWSER: ${{ matrix.browser }}
73- # E2E_BACKEND: ${{ inputs.backend }}
74- # E2E_RETRY_COUNT: ${{ inputs.retry_count }}
75- # E2E_TEST_NAME: ${{ inputs.test_name }}
76- # E2E_NPM_SCRIPT: ${{ inputs.npm_script }}
77- # E2E_ENV: ${{ inputs.env }}
78- # run: |
79- # if [ -z "$E2E_NPM_SCRIPT" ]; then
80- # ../amplify-data/scripts/retry-npm-script.sh -s \
81- # "ci:test \
82- # $E2E_FRAMEWORK \
83- # $E2E_SAMPLE_NAME \
84- # $E2E_SPEC \
85- # $E2E_BROWSER \
86- # dev \
87- # $E2E_BACKEND \
88- # --env $(echo $E2E_ENV | jq -r 'tostring')" \
89- # $E2E_NPM_SCRIPT \
90- # -n $E2E_RETRY_COUNT
91- # else
92- # echo "Skipping specialized yarn script execution in the dev environment."
93- # fi
65+ - name : Run cypress tests for webpack e2e test dev
66+ shell : bash
67+ working-directory : ./amplify-data
68+ env :
69+ E2E_FRAMEWORK : ${{ inputs.framework }}
70+ E2E_SAMPLE_NAME : ${{ matrix.sample_name }}
71+ E2E_SPEC : ${{ inputs.spec }}
72+ E2E_BROWSER : ${{ matrix.browser }}
73+ E2E_BACKEND : ${{ inputs.backend }}
74+ E2E_RETRY_COUNT : ${{ inputs.retry_count }}
75+ E2E_TEST_NAME : ${{ inputs.test_name }}
76+ E2E_NPM_SCRIPT : ${{ inputs.npm_script }}
77+ E2E_ENV : ${{ inputs.env }}
78+ run : |
79+ if [ -z "$E2E_NPM_SCRIPT" ]; then
80+ ../amplify-data/scripts/retry-npm-script.sh -s \
81+ "ci:test \
82+ $E2E_FRAMEWORK \
83+ $E2E_SAMPLE_NAME \
84+ $E2E_SPEC \
85+ $E2E_BROWSER \
86+ dev \
87+ $E2E_BACKEND \
88+ --env $(echo $E2E_ENV | jq -r 'tostring')" \
89+ $E2E_NPM_SCRIPT \
90+ -n $E2E_RETRY_COUNT
91+ else
92+ echo "Skipping specialized yarn script execution in the dev environment."
93+ fi
9494 - name : Run cypress tests for ${{ inputs.test_name }} prod
9595 shell : bash
9696 working-directory : ./amplify-data
0 commit comments