Skip to content

Switch tests from zemu to ragger #12

Switch tests from zemu to ragger

Switch tests from zemu to ragger #12

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.
#
# While 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:
push:
branches:
- master
- main
- develop
pull_request:
jobs:
build_plugin:
name: Build plugin using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: LedgerHQ/app-plugin-boilerplate
flags: "DEBUG=1"
upload_app_binaries_artifact: libraries_binaries
upload_as_lib_artifact: PluginBoilerplate
run_for_devices: '["nanos", "nanox", "nanosp", "stax"]'
build_ethereum_app:
name: Build Ethereum app using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: LedgerHQ/app-ethereum
app_branch_name: develop
flags: "DEBUG=1 BYPASS_SIGNATURES=1"
upload_app_binaries_artifact: ethereum_binaries
run_for_devices: '["nanos", "nanox", "nanosp", "stax"]'
ragger_tests:
name: Run ragger tests using the reusable workflow
needs:
- build_plugin
- build_ethereum_app
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
app_repository: LedgerHQ/app-plugin-boilerplate
download_app_binaries_artifact: ethereum_binaries
lib_binaries_artifact: libraries_binaries
test_dir: tests
run_for_devices: '["nanos", "nanox", "nanosp", "stax"]'