From 1952678c11e801dfaf96032f69be3606b40f2010 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Fri, 5 Jan 2024 17:19:04 +0100 Subject: [PATCH] Configurable lib repository in CI --- .../reusable_swap_functional_tests.yml | 72 +++++++++++++++---- 1 file changed, 59 insertions(+), 13 deletions(-) diff --git a/.github/workflows/reusable_swap_functional_tests.yml b/.github/workflows/reusable_swap_functional_tests.yml index 8900d8b5..37361dec 100644 --- a/.github/workflows/reusable_swap_functional_tests.yml +++ b/.github/workflows/reusable_swap_functional_tests.yml @@ -7,42 +7,88 @@ on: required: false default: 'develop' type: string + branch_for_stellar: required: false default: 'develop' type: string + repo_for_stellar: + required: false + default: 'LedgerHQ/app-stellar' + type: string + branch_for_tezos: required: false default: 'develop' type: string + repo_for_tezos: + required: false + default: 'LedgerHQ/app-tezos' + type: string + branch_for_xrp: required: false default: 'develop' type: string + repo_for_xrp: + required: false + default: 'LedgerHQ/app-xrp' + type: string + branch_for_ethereum: required: false default: 'develop' type: string + repo_for_ethereum: + required: false + default: 'LedgerHQ/app-ethereum' + type: string + branch_for_bitcoin_legacy: required: false default: 'develop' type: string + repo_for_bitcoin_legacy: + required: false + default: 'LedgerHQ/app-bitcoin' + type: string + branch_for_bitcoin: required: false default: 'develop' type: string + repo_for_bitcoin: + required: false + default: 'LedgerHQ/app-bitcoin-new' + type: string + branch_for_solana: required: false default: 'develop' type: string + repo_for_solana: + required: false + default: 'LedgerHQ/app-solana' + type: string + branch_for_polkadot: required: false default: 'develop' type: string + repo_for_polkadot: + required: false + default: 'LedgerHQ/app-polkadot' + type: string + branch_for_tron: required: false default: 'develop' type: string + repo_for_tron: + required: false + default: 'LedgerHQ/app-tron' + type: string + test_filter: required: false default: '""' @@ -56,45 +102,45 @@ jobs: matrix: coin: - name: stellar - repo: app-stellar + repo: ${{ inputs.repo_for_stellar }} branch: ${{ inputs.branch_for_stellar }} - name: tezos - repo: app-tezos + repo: ${{ inputs.repo_for_tezos }} branch: ${{ inputs.branch_for_tezos }} - name: xrp - repo: app-xrp + repo: ${{ inputs.repo_for_xrp }} branch: ${{ inputs.branch_for_xrp }} - name: ethereum - repo: app-ethereum + repo: ${{ inputs.repo_for_ethereum }} branch: ${{ inputs.branch_for_ethereum }} - name: ethereum_classic - repo: app-ethereum + repo: ${{ inputs.repo_for_ethereum }} branch: ${{ inputs.branch_for_ethereum }} - name: litecoin - repo: app-bitcoin + repo: ${{ inputs.repo_for_bitcoin_legacy }} branch: ${{ inputs.branch_for_bitcoin_legacy }} - name: bitcoin_legacy - repo: app-bitcoin + repo: ${{ inputs.repo_for_bitcoin_legacy }} branch: ${{ inputs.branch_for_bitcoin_legacy }} - name: bitcoin - repo: app-bitcoin-new + repo: ${{ inputs.repo_for_bitcoin }} branch: ${{ inputs.branch_for_bitcoin }} - name: solana - repo: app-solana + repo: ${{ inputs.repo_for_solana }} branch: ${{ inputs.branch_for_solana }} - name: bsc - repo: app-ethereum + repo: ${{ inputs.repo_for_ethereum }} branch: ${{ inputs.branch_for_ethereum }} - name: DOT - repo: app-polkadot + repo: ${{ inputs.repo_for_polkadot }} branch: ${{ inputs.branch_for_polkadot }} - name: tron - repo: app-tron + repo: ${{ inputs.repo_for_tron }} branch: ${{ inputs.branch_for_tron }} uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1 with: - app_repository: LedgerHQ/${{ matrix.coin.repo }} + app_repository: ${{ matrix.coin.repo }} app_branch_name: ${{ matrix.coin.branch }} flags: "COIN=${{ matrix.coin.name }} CHAIN=${{ matrix.coin.name }}" upload_app_binaries_artifact: libraries_binaries