Skip to content

Commit

Permalink
Add an option for opening PRs with golden run result in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Sep 9, 2024
1 parent f5eecb1 commit a954510
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 @@ -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
Expand Down Expand Up @@ -44,3 +53,4 @@ jobs:
download_app_binaries_artifact: plugin_binaries
additional_app_binaries_artifact: ethereum_build_develop
additional_app_binaries_artifact_dir: ./tests/.test_dependencies/ethereum/build
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}

0 comments on commit a954510

Please sign in to comment.