Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Sep 5, 2024
1 parent 2f8a1f3 commit 05e4de6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/reusable_regenerate_snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Regenerate and commit snapshots

on:
workflow_dispatch:

jobs:
delete_snapshots:
name: Delete current snapshots
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Delete snapshots
run: |
rm -rf ./test/python/snapshots
regenerate_snapshots:
name: Run ragger with golden run
needs: delete_snapshots
uses: ./.github/workflows/reusable_swap_functional_tests.yml
with:
branch_for_exchange: ${{ github.ref }}
regenerate_snapshots: true
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 @@ -98,6 +98,11 @@ on:
default: '""'
type: string

regenerate_snapshots:
required: false
default: false
type: boolean

jobs:
build_sideloaded_applications:
name: Build libraries
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 }}
test_options: ${{ inputs.regenerate_snapshots == 'true' && '--golden_run' || '' }}

0 comments on commit 05e4de6

Please sign in to comment.