Skip to content

Merge pull request #254 from LedgerHQ/fbe/cherry-pick_exchange_fixes_… #590

Merge pull request #254 from LedgerHQ/fbe/cherry-pick_exchange_fixes_…

Merge pull request #254 from LedgerHQ/fbe/cherry-pick_exchange_fixes_… #590

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
job_build:
name: Compilation
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone
uses: actions/checkout@v2
- name: Build
run: |
make && mv bin/ bitcoin-bin/
make clean
make COIN=bitcoin_testnet_legacy && mv bin/ bitcoin-testnet-bin/
- name: Upload Bitcoin app binary
uses: actions/upload-artifact@v2
with:
name: bitcoin-app
path: bitcoin-bin
- name: Upload Bitcoin Testnet app binary
uses: actions/upload-artifact@v2
with:
name: bitcoin-testnet-app
path: bitcoin-testnet-bin
job_test:
name: Tests
needs: job_build
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/speculos:latest
ports:
- 1234:1234
- 9999:9999
- 40000:40000
- 41000:41000
- 42000:42000
- 43000:43000
options: --entrypoint /bin/bash
steps:
- name: Clone
uses: actions/checkout@v2
- name: Download Bitcoin app binary
uses: actions/download-artifact@v2
with:
name: bitcoin-app
path: tests/bitcoin-bin
- name: Download Bitcoin Testnet app binary
uses: actions/download-artifact@v2
with:
name: bitcoin-testnet-app
path: tests/bitcoin-testnet-bin
- name: Run tests
run: |
cd tests && pip install -r requirements.txt && SPECULOS=/speculos/speculos.py pytest