Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip #211

Merged
merged 1 commit into from
Sep 5, 2024
Merged

wip #211

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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' || '' }}
Loading