From 08d74e2af3486cd0c32600f7a56e3cc6b0d41a5d Mon Sep 17 00:00:00 2001 From: lisaoulmi Date: Thu, 25 Nov 2021 15:07:04 +0000 Subject: [PATCH] ci tests: added nanox and e2e jobs in plugin ci --- .github/workflows/ci-workflow.yml | 78 +++++++++++++++---------------- tests/src/mint_token.test.js | 10 ++-- 2 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 0de94d8..0efdc82 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -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 diff --git a/tests/src/mint_token.test.js b/tests/src/mint_token.test.js index 20a1eeb..5eefe77 100644 --- a/tests/src/mint_token.test.js +++ b/tests/src/mint_token.test.js @@ -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) =>