Skip to content

Commit

Permalink
refactor: use the new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelugolini committed Nov 17, 2023
1 parent 14234a5 commit 85973fc
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 164 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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:
upload_app_binaries_artifact: plugin_binaries
flags: "DEBUG=1"

build_develop_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_build_develop

ragger_tests_with_ethereum_develop:
name: Run ragger tests using the reusable workflow
needs:
- build_plugin
- build_develop_ethereum_app
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: plugin_binaries
additional_app_binaries_artifact: ethereum_build_develop
additional_app_binaries_artifact_dir: ./tests/ethereum_build/build
164 changes: 0 additions & 164 deletions .github/workflows/ci-workflow.yml

This file was deleted.

0 comments on commit 85973fc

Please sign in to comment.