diff --git a/.github/workflows/build_and_functional_tests.yml b/.github/workflows/build_and_functional_tests.yml index 974ee5fb7..c9536290b 100644 --- a/.github/workflows/build_and_functional_tests.yml +++ b/.github/workflows/build_and_functional_tests.yml @@ -10,6 +10,15 @@ name: Build and run functional tests using ragger through reusable workflow 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 @@ -31,6 +40,7 @@ jobs: uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1 with: download_app_binaries_artifact: "ragger_elfs" + regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }} build_clone_app: name: Build Clone app using the reusable workflow @@ -50,3 +60,4 @@ jobs: additional_app_binaries_artifact: "clone_elfs" additional_app_binaries_artifact_dir: ./tests/ragger/.test_dependencies/clone/build/ test_options: "--with_lib_mode" + regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}