diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5a11b751..dd4deb1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,9 @@ jobs: Test: runs-on: ubuntu-latest needs: build + strategy: + matrix: + runner: [ BSAndroid1Runner.java , BSAndroid2Runner.java ] steps: - uses: actions/checkout@v2 @@ -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/** \ No newline at end of file