Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci tests: added nanox and e2e jobs in plugin ci #8

Merged
merged 1 commit into from
Nov 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,46 +27,46 @@ jobs:
make clean
make BOLOS_SDK=$NANOS_SDK

# job_build_debug_nano_x:
# name: Build debug Nano X
# runs-on: ubuntu-latest
job_build_debug_nano_x:
name: Build debug Nano X
runs-on: ubuntu-latest

# container:
# image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest

# steps:
# - name: Clone
# uses: actions/checkout@v2
# with:
# submodules: recursive
steps:
- name: Clone
uses: actions/checkout@v2
with:
submodules: recursive

# - name: Build plugin for Nano X
# run: |
# make clean
# make BOLOS_SDK=$NANOX_SDK
- name: Build plugin for Nano X
run: |
make clean
make BOLOS_SDK=$NANOX_SDK

# jobs-e2e-tests:
# needs: [job_build_debug_nano_s, job_build_debug_nano_x]
# runs-on: ubuntu-latest
# steps:
# - name: Test
# run: |
# id
# echo $HOME
# echo $DISPLAY
# - name: Checkout
# uses: actions/checkout@v2
# - run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
# - name: Install node
# uses: actions/setup-node@v2
# with:
# node-version: "14.4.0"
# - name: Install yarn
# run: |
# npm install -g yarn
# - name: Build/Install build js deps
# run: |
# cd tests && yarn install
# - name: Run zemu tests
# run: |
# cd tests && yarn test
jobs-e2e-tests:
needs: [job_build_debug_nano_s, job_build_debug_nano_x]
runs-on: ubuntu-latest
steps:
- name: Test
run: |
id
echo $HOME
echo $DISPLAY
- name: Checkout
uses: actions/checkout@v2
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "14.4.0"
- name: Install yarn
run: |
npm install -g yarn
- name: Build/Install build js deps
run: |
cd tests && yarn install
- name: Run zemu tests
run: |
cd tests && yarn test
10 changes: 5 additions & 5 deletions tests/src/mint_token.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const devices = [
label: "Nano S",
steps: 7, // <= Define the number of steps for this test case and this device
},
{
name: "nanox",
label: "Nano X",
steps: 5, // <= Define the number of steps for this test case and this device
},
// {
// name: "nanox",
// label: "Nano X",
// steps: 5, // <= Define the number of steps for this test case and this device
// },
];

devices.forEach((device) =>
Expand Down