PERA-1353 :: Add new bottomsheet for HD Wallet flow #240
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Pera Android BrowserStack Tests" | |
on: | |
workflow_dispatch: | |
push: | |
pull_request_target: | |
types: [ opened, closed, synchronize ] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
browserstack: | |
if: > | |
github.event_name != 'pull_request_target' || | |
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'external contribution')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout Code" | |
uses: actions/checkout@v4 | |
- name: "Install JDK 21" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: "21" | |
cache: "gradle" | |
- name: "Create Prod Debug APK" | |
run: | | |
./gradlew app:assembleProdDebug | |
./gradlew app:assembleProdDebugAndroidTest | |
- name: "Upload and Run Tests on BrowserStack" | |
id: browserstack | |
uses: chrisbanes/[email protected] | |
with: | |
browserstackUsername: ${{ secrets.BROWSERSTACK_USERNAME }} | |
browserstackAccessKey: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} | |
project: Pera-Android | |
buildTag: ${{ github.sha }} | |
appFilePath: ${{ github.workspace }}/app/build/outputs/apk/prod/debug/app-prod-debug.apk | |
testFilePath: ${{ github.workspace }}/app/build/outputs/apk/androidTest/prod/debug/app-prod-debug-androidTest.apk | |
devices: Samsung Galaxy S22-12.0,Google Pixel 9-15.0 | |
- name: "Write to Json file" | |
run: | | |
mkdir ${{ github.workspace }}/app/build/reports/browserstack | |
touch ${{ github.workspace }}/app/build/reports/browserstack/test-results.json | |
echo '${{ env.test_result }}' > ${{ github.workspace }}/app/build/reports/browserstack/test-results.json | |
- name: "Upload Test Results" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: browserstack-test-results | |
path: ${{ github.workspace }}/app/build/reports/browserstack/test-results.json |