Skip to content

Commit

Permalink
Merge pull request #8887 from LedgerHQ/support/qaa_429_fix_speculos_b…
Browse files Browse the repository at this point in the history
…roadcast

[Speculos][Playwright][Detox] Fixing scheduled run broadcast
  • Loading branch information
abdurrahman-ledger authored Jan 14, 2025
2 parents e3fe89d + 083fb26 commit a113283
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test-mobile-e2e-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}
- name: Run Android Tests
id: detox
run: pnpm mobile e2e:ci -p android -t $([[ "$INPUT_SPECULOS" == "true" ]] && printf %s '--speculos') --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-ui-e2e-only-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
uses: LedgerHQ/ledger-live/tools/actions/composites/setup-e2e-broadcast@develop
with:
enable_broadcast: ${{ inputs.enable_broadcast }}
schedule_cron: ${{ github.event.schedule.cron }}

- name: Run playwright tests [Linux => xvfb-run]
id: tests
Expand Down
6 changes: 5 additions & 1 deletion tools/actions/composites/setup-e2e-broadcast/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "Enable transaction broadcast"
required: false
default: "false"
schedule_cron:
description: "Cron expression for scheduled runs"
required: false
default: ""

runs:
using: composite
Expand All @@ -13,7 +17,7 @@ runs:
id: set-broadcast
shell: bash
run: |
if [[ "${{ inputs.enable_broadcast }}" == "true" || ( "${{ github.event_name }}" == "schedule" && "${{ github.event.schedule.cron }}" == "0 5 * * 1" ) ]]; then
if [[ "${{ inputs.enable_broadcast }}" == "true" || ( "${{ github.event_name }}" == "schedule" && "${{ inputs.schedule_cron }}" == "0 5 * * 1" ) ]]; then
echo "DISABLE_TRANSACTION_BROADCAST=0" >> $GITHUB_ENV
else
echo "DISABLE_TRANSACTION_BROADCAST=1" >> $GITHUB_ENV
Expand Down

0 comments on commit a113283

Please sign in to comment.