Skip to content

Commit

Permalink
chore: fix e2e workflows (#674)
Browse files Browse the repository at this point in the history
* chore: fixes workflows working directoy

* chore: fixes android workflow env

* chore: debugging workflow

* chore: debugging workflow

* chore: debugging workflow

* chore: debugging workflow

* chore: fixing workflow
  • Loading branch information
christopherferreira9 authored Feb 8, 2024
1 parent 66a6dd3 commit b39dc0d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e-android-sdk-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

# Create .android.env with inputs in the /e2e directory
- name: Create .android.env
working-directory: ./e2e
run: |
browserstack_api_url="https://api-cloud.browserstack.com/app-automate/recent_apps/"
response=$(curl -s -u "$BROWSERSTACK_API_USERNAME:$BROWSERSTACK_API_PASSWORD" "$browserstack_api_url")
Expand All @@ -57,8 +58,8 @@ jobs:
echo "BUNDLE_ID=$android_wallet_app_bundle_id"
echo "ANDROID_SDK_TEST_APP_PATH=$android_native_sdk_url"
echo "ANDROID_SDK_TEST_BUNDLE_ID=$android_native_sdk_bundle_id"
} >> e2e/.android.env
} >> .android.env
- name: Run Android SDK E2E tests
working-directory: ./e2e
run: yarn test:android:androidsdk:e2e:browserstack

7 changes: 5 additions & 2 deletions .github/workflows/e2e-js-sdk-android-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

# Create .android.env with inputs in the /e2e directory
- name: Create .android.env
working-directory: ./e2e
run: |
browserstack_api_url="https://api-cloud.browserstack.com/app-automate/recent_apps/"
response=$(curl -s -u "$BROWSERSTACK_API_USERNAME:$BROWSERSTACK_API_PASSWORD" "$browserstack_api_url")
Expand All @@ -57,17 +58,19 @@ jobs:
echo "BUNDLE_ID=$android_wallet_app_bundle_id"
echo "RN_TEST_APP_PATH=$android_rn_app_url"
echo "RN_TEST_APP_BUNDLE_ID=$android_rn_app_bundle_id"
} >> e2e/.android.env
} >> .android.env
# Hard code .dapps.env values in the /e2e directory
- name: Set Dapps Environment Variables
working-directory: ./e2e
run: |
{
echo "TEST_DAPP_URL=https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/test-dapp/"
echo "SDK_PLAYGROUND_DAPP_URL=https://mmsdk-playground-test.vercel.app/demo"
echo "WEB3_ON_BOARD_DAPP_URL=https://mmsdk-playground-test.vercel.app/onboard"
} >> e2e/.dapps.env
} >> .dapps.env
- name: Run JS-SDK Android E2E tests
working-directory: ./e2e
run: yarn test:android:jssdk:e2e:browserstack

7 changes: 5 additions & 2 deletions .github/workflows/e2e-js-sdk-ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

# Create .ios.env with inputs in the /e2e directory
- name: Create .ios.env
working-directory: ./e2e
run: |
browserstack_api_url="https://api-cloud.browserstack.com/app-automate/recent_apps/"
response=$(curl -s -u "$BROWSERSTACK_API_USERNAME:$BROWSERSTACK_API_PASSWORD" "$browserstack_api_url")
Expand All @@ -57,16 +58,18 @@ jobs:
echo "BUNDLE_ID=$ios_wallet_app_bundle_id"
echo "RN_TEST_APP_PATH=$ios_rn_app_url"
echo "RN_TEST_APP_BUNDLE_ID=$ios_rn_app_bundle_id"
} >> e2e/.ios.env
} >> .ios.env
# Hard code .dapps.env values in the /e2e directory
- name: Set Dapps Environment Variables
working-directory: ./e2e
run: |
{
echo "TEST_DAPP_URL=https://c0f4f41c-2f55-4863-921b-sdk-docs.github.io/test-dapp/"
echo "SDK_PLAYGROUND_DAPP_URL=https://mmsdk-playground-test.vercel.app/demo"
echo "WEB3_ON_BOARD_DAPP_URL=https://mmsdk-playground-test.vercel.app/onboard"
} >> e2e/.dapps.env
} >> .dapps.env
- name: Run JS-SDK iOS E2E tests
working-directory: ./e2e
run: yarn test:ios:jssdk:e2e:browserstack

0 comments on commit b39dc0d

Please sign in to comment.