Skip to content

Commit

Permalink
Merge pull request #216 from LedgerHQ/fbe/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
fbeutin-ledger authored Sep 9, 2024
2 parents 2f8a1f3 + e391a2a commit 14b2a7e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
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' }}
2 changes: 1 addition & 1 deletion .github/workflows/lint-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
name: Check linting using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_lint.yml@v1
with:
source: './'
source: './src'
extensions: 'h,c'
version: 12
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 14b2a7e

Please sign in to comment.