Skip to content

Commit

Permalink
Merge pull request #112 from LedgerHQ/cev/add_golden_run_CI
Browse files Browse the repository at this point in the history
Add an option for opening PRs with golden run result in CI
  • Loading branch information
cedelavergne-ledger authored Sep 23, 2024
2 parents 1c74157 + 9f81e7c commit b762e7a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ name: Build and run functional tests using ragger through reusable workflow
# resulting binaries.
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
Expand All @@ -25,3 +34,4 @@ jobs:
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: "compiled_app_binaries"
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}

0 comments on commit b762e7a

Please sign in to comment.