Skip to content

Commit cb25636

Browse files
Merge pull request #73 from LedgerHQ/fbe/golden_run_CI
Add an option for opening PRs with golden run result in CI
2 parents 5ce6a28 + 343d6da commit cb25636

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build_and_functional_tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ name: Build and run functional tests using ragger through reusable workflow
1010

1111
on:
1212
workflow_dispatch:
13+
inputs:
14+
golden_run:
15+
type: choice
16+
required: true
17+
default: 'Raise an error (default)'
18+
description: CI behavior if the test snaphots are different than expected.
19+
options:
20+
- 'Raise an error (default)'
21+
- 'Open a PR'
1322
push:
1423
branches:
1524
- master
@@ -31,3 +40,4 @@ jobs:
3140
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
3241
with:
3342
download_app_binaries_artifact: "compiled_app_binaries"
43+
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}

0 commit comments

Comments
 (0)