Skip to content

Commit

Permalink
Merge pull request #165 from Alfresco/fix/automate_test
Browse files Browse the repository at this point in the history
Changes in Github action for fixing android run test in browserstack
  • Loading branch information
omkaryadv177 authored Aug 9, 2023
2 parents f0e078a + 5882226 commit e4131eb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
Test:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
runner: [ BSAndroid1Runner.java , BSAndroid2Runner.java ]

steps:
- uses: actions/checkout@v2
Expand All @@ -76,17 +79,22 @@ jobs:
name: libs

- name: Clone Github repo
run: git clone -b automate_test_1839 "https://$GIT_USERNAME:$GIT_PASSWORD@$REPO"
run: git clone "https://$GIT_USERNAME:$GIT_PASSWORD@$REPO"

- name: Run test
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
cd /home/runner/work/alfresco-mobile-workspace-android-enterprise/alfresco-mobile-workspace-android-enterprise/alfresco-mobile-workspace-automation/MobileApps.AppiumAutomationFramework
bash _ci/init.sh ${BROWSERSTACK_USERNAME} ${BROWSERSTACK_ACCESSKEY}
bash _ci/init.sh ${BROWSERSTACK_USERNAME} ${BROWSERSTACK_ACCESSKEY} ${{ matrix.runner }}
- name: Run manual test using workflow dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
cd /home/runner/work/alfresco-mobile-workspace-android-enterprise/alfresco-mobile-workspace-android-enterprise/alfresco-mobile-workspace-automation/MobileApps.AppiumAutomationFramework
bash _ci/init.sh ${BROWSERSTACK_USERNAME} ${BROWSERSTACK_ACCESSKEY}
bash _ci/init.sh ${BROWSERSTACK_USERNAME} ${BROWSERSTACK_ACCESSKEY} ${{ matrix.runner }}
- name: Store Artifact
uses: actions/upload-artifact@v3
with:
name: report
path: ./alfresco-mobile-workspace-automation/MobileApps.AppiumAutomationFramework/report/**

0 comments on commit e4131eb

Please sign in to comment.