Skip to content

Commit

Permalink
Use dynamic custom ID for CI check
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
djoksimo committed Dec 13, 2023
1 parent 124478f commit d815ac5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30

env:
# Avoid concurrency issues
BROWSERSTACK_CUSTOM_ID: ${{ (github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch') && format('pr-{0}', github.sha) || 'AndroidApp' }}

steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -42,7 +46,7 @@ jobs:
curl -u "${{ secrets.BROWSERSTACK_USERNAME }}:${{ secrets.BROWSERSTACK_ACCESS_KEY }}" -X POST \
https://api-cloud.browserstack.com/app-automate/upload \
-F "file=@${{ github.workspace }}/sample-app/build/outputs/apk/debug/sample-app-debug.apk" \
-F "custom_id=AndroidApp"
-F "custom_id=${{ env.BROWSERSTACK_CUSTOM_ID }}"
- name: Checkout Integration Test Repo
uses: actions/checkout@v3
Expand All @@ -56,6 +60,7 @@ jobs:
run: |
cd mobile-qa-tests
pip install -r requirements.txt
export BROWSERSTACK_CUSTOM_ID=${{ env.BROWSERSTACK_CUSTOM_ID }}
pytest android/tests/test_basic_flow.py || true
pytest --lf --last-failed-no-failures none --suppress-no-test-exit-code android/tests/test_basic_flow.py
Expand Down

0 comments on commit d815ac5

Please sign in to comment.