diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index 9ed0880..bca44d8 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -87,6 +87,7 @@ jobs: cypress-tests: name: Run Cypress Tests + needs: [ set-env, deploy-image ] if: needs.set-env.outputs.environment == 'test' || needs.set-env.outputs.environment == 'development' uses: ./.github/workflows/cypress-tests.yml with: diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index 7422f92..96ff609 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -41,5 +41,5 @@ jobs: run: npm install - name: Run Cypress (${{ inputs.environment }}) - if: inputs.environment == 'staging' || inputs.environment == 'dev' + if: inputs.environment == 'staging' || inputs.environment == 'development' run: npm run cy:run -- --env apiKey="${{ secrets.IDENTIFIERS_API_KEY }}",url="${{ secrets.IDENTIFIERS_API_BASE_URL }}"