-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch develop into master, making master identical to develop.…
… Ignore cherry picks made into master
- Loading branch information
Showing
1,832 changed files
with
2,357 additions
and
6,349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Checklist | ||
<!-- Put an `x` in each box when you have completed the items. --> | ||
- [ ] App update process has been followed <!-- See comment below --> | ||
- [ ] Target branch is `develop` <!-- unless you have a very good reason --> | ||
- [ ] Application version has been bumped <!-- required if your changes are to be deployed --> | ||
|
||
<!-- Make sure you followed the process described in https://developers.ledger.com/docs/device-app/deliver/maintenance before opening your Pull Request. | ||
Don't hesitate to contact us directly on Discord if you have any questions ! https://developers.ledger.com/discord --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,171 +1,16 @@ | ||
# https://github.com/LedgerHQ/app-exchange/blob/develop/.github/workflows/ci-workflow.yml | ||
name: Swap function tests | ||
name: Swap functional tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- develop | ||
|
||
|
||
jobs: | ||
build_sideloaded_apps: | ||
strategy: | ||
matrix: | ||
sdk: | ||
- path: $NANOS_SDK | ||
name: nanos | ||
- path: $NANOX_SDK | ||
name: nanox | ||
- path: $NANOSP_SDK | ||
name: nanosp | ||
coin: | ||
- name: tezos | ||
repo: LedgerHQ/app-tezos | ||
branch: develop | ||
- name: xrp | ||
repo: LedgerHQ/app-xrp | ||
branch: develop | ||
- name: ethereum | ||
repo: LedgerHQ/app-ethereum | ||
branch: develop | ||
- name: litecoin | ||
repo: LedgerHQ/app-bitcoin | ||
branch: master | ||
- name: bitcoin_legacy | ||
repo: LedgerHQ/app-bitcoin | ||
branch: master | ||
- name: bitcoin | ||
repo: LedgerHQ/app-bitcoin-new | ||
branch: develop | ||
|
||
name: Build App | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder | ||
|
||
steps: | ||
- name: Clone ${{ matrix.coin.repo }} for coin ${{ matrix.coin.name }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ${{ matrix.coin.repo }} | ||
ref: ${{ matrix.coin.branch }} | ||
|
||
- name: Build in ${{ matrix.coin.repo }} coin ${{ matrix.coin.name }} for SDK ${{ matrix.sdk.name }} | ||
run: | | ||
make clean ; make COIN=${{ matrix.coin.name }} BOLOS_SDK=${{ matrix.sdk.path }} | ||
cp bin/app.elf ${{ matrix.coin.name }}_${{ matrix.sdk.name }}.elf | ||
- name: Upload ${{ matrix.coin.name }} binaries | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ matrix.coin.name }}_binaries | ||
path: ./*.elf | ||
if-no-files-found: error | ||
|
||
build_stellar_app: | ||
strategy: | ||
matrix: | ||
sdk: | ||
- path: $NANOS_SDK | ||
name: nanos | ||
- path: $NANOX_SDK | ||
name: nanox | ||
- path: $NANOSP_SDK | ||
name: nanosp | ||
|
||
name: Build Stellar App | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder | ||
|
||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build for SDK ${{ matrix.sdk.name }} | ||
run: | | ||
make clean ; make BOLOS_SDK=${{ matrix.sdk.path }} | ||
cp bin/app.elf stellar_${{ matrix.sdk.name }}.elf | ||
- name: Upload stellar binaries | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: stellar_binaries | ||
path: ./*.elf | ||
if-no-files-found: error | ||
|
||
build_exchange: | ||
name: Build Exchange | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sdk: [{path: $NANOS_SDK, name: nanos}, {path: $NANOX_SDK, name: nanox}, {path: $NANOSP_SDK, name: nanosp}] | ||
|
||
container: | ||
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder | ||
|
||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "LedgerHQ/app-exchange" | ||
ref: "develop" | ||
submodules: true | ||
|
||
- name: Build Exchange | ||
run: | | ||
make clean ; make BOLOS_SDK=${{ matrix.sdk.path }} TESTING=1 TEST_PUBLIC_KEY=1 | ||
cp bin/app.elf exchange_${{ matrix.sdk.name }}.elf | ||
- name: Upload Exchange binaries | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: exchange_binaries | ||
path: ./*.elf | ||
if-no-files-found: error | ||
|
||
e2e_tests: | ||
name: Swap e2e tests | ||
strategy: | ||
matrix: | ||
device: ["Nano S", "Nano X", "Nano SP"] | ||
needs: | ||
- build_exchange | ||
- build_sideloaded_apps | ||
- build_stellar_app | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: "LedgerHQ/app-exchange" | ||
ref: "develop" | ||
|
||
- name: Install APT dependencies | ||
run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install Yarn | ||
run: npm install -g yarn | ||
|
||
- name: Install JS dependencies | ||
run: cd test && yarn install | ||
|
||
- name: Upgrade @zondax/zemu | ||
run: cd test && yarn upgrade @zondax/zemu@0.32.0 | ||
|
||
- name: Download all binaries | ||
uses: actions/download-artifact@v2 | ||
|
||
- name: Gather artifacts | ||
run: | | ||
mkdir test/elfs | ||
mv *_binaries/*.elf test/elfs | ||
- name: Run zemu tests for device ${{ matrix.device }} | ||
run: cd test && yarn test -t "\[${{ matrix.device }}\]" | ||
job_functional_tests: | ||
uses: LedgerHQ/app-exchange/.github/workflows/reusable_swap_functional_tests.yml@develop | ||
with: | ||
branch_for_stellar: ${{ github.ref }} | ||
test_filter: '"XLM or xlm or Stellar or stellar"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.