Add reusable workflow to test Ledger applications #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and run functional tests of Ledger owned applications | ||
# This workflow will build Ledger owned applications and then run functional tests on them | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
golden_run: | ||
type: choice | ||
required: true | ||
default: 'Raise an error (default)' | ||
description: CI behavior if the test snaphots are different than expected. | ||
options: | ||
- 'Raise an error (default)' | ||
- 'Open a PR' | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- develop | ||
pull_request: | ||
jobs: | ||
ethereum: | ||
name: Ethereum | ||
uses: LedgerHQ/app-ethereum/.github/workflows/reusable_build_and_functional_tests.yml@fbe/reusable_entry_point_for_CI | ||
with: | ||
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} | ||
bitcoin: | ||
name: Bitcoin | ||
uses: LedgerHQ/app-bitcoin-new/.github/workflows/reusable_build_and_functional_tests.yml@fbe/reusable_entry_point_for_CI | ||
with: | ||
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} | ||
exchange: | ||
name: Exchange | ||
uses: LedgerHQ/app-exchange/.github/workflows/reusable_swap_functional_tests.yml@develop | ||
with: | ||
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} | ||
boilerplate: | ||
name: Boilerplate | ||
uses: LedgerHQ/app-boilerplate/.github/workflows/reusable_build_and_functional_tests.yml@fbe/reusable_entry_point_for_CI | ||
with: | ||
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} | ||
plugin_boilerplate: | ||
name: Plugin Boilerplate | ||
uses: LedgerHQ/app-plugin-boilerplate/.github/workflows/reusable_build_and_functional_tests.yml@fbe/reusable_entry_point_for_CI | ||
with: | ||
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} |