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 2f8a1f3 commit cfeebbb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ name: Compilation & tests

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 @@ -15,3 +24,4 @@ jobs:
with:
branch_for_exchange: ${{ github.ref }}
test_filter: "'not polkadot'"
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}
6 changes: 6 additions & 0 deletions .github/workflows/reusable_swap_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ on:
required: false
default: '""'
type: string
regenerate_snapshots:
description: 'Clean snapshots, regenerate them, commit the changes in a branch, and open a PR'
required: false
default: false
type: boolean

jobs:
build_sideloaded_applications:
Expand Down Expand Up @@ -184,3 +189,4 @@ jobs:
download_app_binaries_artifact: exchange_binaries
lib_binaries_artifact: libraries_binaries
test_filter: ${{ inputs.test_filter }}
regenerate_snapshots: ${{ inputs.regenerate_snapshots }}

0 comments on commit cfeebbb

Please sign in to comment.