Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add api host input to e2e action #1398

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
types: [opened, reopened, ready_for_review]

workflow_dispatch:
inputs:
setupJSON:
description: 'Setup JSON'

concurrency:
group: ${{ github.repository }}-concurrency-for-e2e
Expand Down Expand Up @@ -53,15 +56,16 @@ jobs:
- name: Cypress run
uses: cypress-io/github-action@v6
env:
CYPRESS_TEST_USERNAME: ${{ secrets.CYPRESS_TEST_USERNAME}}
CYPRESS_TEST_PASSWORD: ${{ secrets.CYPRESS_TEST_PASSWORD }}
CYPRESS_TEST_USERNAME: ${{ fromJSON(github.event.inputs.setupJSON).username || secrets.CYPRESS_TEST_USERNAME }}
CYPRESS_TEST_PASSWORD: ${{ fromJSON(github.event.inputs.setupJSON).password || secrets.CYPRESS_TEST_PASSWORD }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_TEST_RECORD_ID}}
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_TEST_PROJECT_ID }}
CYPRESS_DYNAMIC_SCAN_SYSTEM_APK_FILE_ID: ${{ vars.CYPRESS_DYNAMIC_SCAN_SYSTEM_APK_FILE_ID }}
CYPRESS_DYNAMIC_SCAN_SYSTEM_IPA_FILE_ID: ${{ vars.CYPRESS_DYNAMIC_SCAN_SYSTEM_IPA_FILE_ID }}
CYPRESS_DYNAMIC_SCAN_SYSTEM_APK_FILE_ID: ${{ fromJSON(github.event.inputs.setupJSON).dynamicScanSystemApkFileId || vars.CYPRESS_DYNAMIC_SCAN_SYSTEM_APK_FILE_ID }}
CYPRESS_DYNAMIC_SCAN_SYSTEM_IPA_FILE_ID: ${{ fromJSON(github.event.inputs.setupJSON).dynamicScanSystemIpaFileId || vars.CYPRESS_DYNAMIC_SCAN_SYSTEM_IPA_FILE_ID }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IRENE_API_HOST: ${{ fromJSON(github.event.inputs.setupJSON).apiHost || 'https://api.appknox.com' }}
with:
start: npm run startprod
start: npx ember serve
browser: chrome
install: false
config: pageLoadTimeout=100000
Expand Down
Loading