From 63e4ab8a6ad7bed0bb89ab5dd5c27f58919c117a Mon Sep 17 00:00:00 2001 From: Xavier Chapron Date: Tue, 10 Oct 2023 17:48:41 +0200 Subject: [PATCH] CI: Add basic CI workflow --- .../workflows/build_and_functional_tests.yml | 21 ++++++++++++++++ .github/workflows/guidelines_enforcer.yml | 25 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/build_and_functional_tests.yml create mode 100644 .github/workflows/guidelines_enforcer.yml diff --git a/.github/workflows/build_and_functional_tests.yml b/.github/workflows/build_and_functional_tests.yml new file mode 100644 index 0000000..3feee3b --- /dev/null +++ b/.github/workflows/build_and_functional_tests.yml @@ -0,0 +1,21 @@ +name: Build and run functional tests using ragger through reusable workflow + +# This workflow will build the app. +# It calls a reusable workflow developed by Ledger's internal developer team to build the application and upload the +# resulting binaries. +on: + workflow_dispatch: + 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@v1 + with: + upload_app_binaries_artifact: "compiled_app_binaries" + run_for_devices: '["nanos", "nanox", "nanosp"]' diff --git a/.github/workflows/guidelines_enforcer.yml b/.github/workflows/guidelines_enforcer.yml new file mode 100644 index 0000000..894eed0 --- /dev/null +++ b/.github/workflows/guidelines_enforcer.yml @@ -0,0 +1,25 @@ +name: Ensure compliance with Ledger guidelines + +# This workflow is mandatory in all applications +# It calls a reusable workflow guidelines_enforcer developed by Ledger's internal developer team. +# The successful completion of the reusable workflow is a mandatory step for an app to be available on the Ledger +# application store. +# +# More information on the guidelines can be found in the repository: +# LedgerHQ/ledger-app-workflows/ + +on: + workflow_dispatch: + push: + branches: + - master + - main + - develop + pull_request: + +jobs: + guidelines_enforcer: + name: Call Ledger guidelines_enforcer + uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_guidelines_enforcer.yml@v1 + with: + run_for_devices: '["nanos", "nanox", "nanosp"]'