Skip to content

Y333/use new swap workflow #618

Y333/use new swap workflow

Y333/use new swap workflow #618

name: Build and run functional tests using ragger through reusable workflow
# This workflow will build the app and then run functional tests using the Ragger framework upon Speculos emulation.
# It calls a reusable workflow developed by Ledger's internal developer team to build the application and upload the
# resulting binaries.
# It then calls another reusable workflow to run the Ragger tests on the compiled application binary.
#
# The build part of this workflow is mandatory, this ensures that the app will be deployable in the Ledger App Store.
# While the test part of this workflow is optional, having functional testing on your application is mandatory and this workflow and
# tooling environment is meant to be easy to use and adapt after forking your application
on:
workflow_dispatch:
inputs:
golden_run:
type: choice
required: true
default: 'Raise an error (default)'
description: CI behavior if the test snapshots are different than expected.
options:
- 'Raise an error (default)'
- 'Open a PR'
push:
branches:
- master
- main
- develop
pull_request:
jobs:
build_application:
name: Build application using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@y333/manage_several_pytest_directories
with:
upload_app_binaries_artifact: "compiled_app_binaries"
tests_standalone:
name: Run standalone ragger tests using the reusable workflow
needs: build_application
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@y333/manage_several_pytest_directories
with:
download_app_binaries_artifact: "compiled_app_binaries"
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}
test_dir: "tests/standalone"
tests_swap:
name: Run swap tests using the callable workflow
needs: build_application
uses: ./.github/workflows/callable_swap_tests.yml
with:
is_app_compiled: true

Check failure on line 51 in .github/workflows/build_and_functional_tests.yml

View workflow run for this annotation

GitHub Actions / Build and run functional tests using ragger through reusable workflow

Invalid workflow file

The workflow is not valid. .github/workflows/build_and_functional_tests.yml (Line: 51, Col: 24): Invalid input, is_app_compiled is not defined in the referenced workflow. .github/workflows/build_and_functional_tests.yml (Line: 52, Col: 29): Invalid input, regenerate_snapshots is not defined in the referenced workflow.
regenerate_snapshots: ${{ inputs.golden_run == 'Open a PR' }}