-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(workflows/ledgerjs-hw-app-iota): add ledgernano tests (#2208)
* feat(workflows/ledgerjs-hw-app-iota): add ledgernano tests * Update .github/workflows/_ledgernano.yml Co-authored-by: DaughterOfMars <[email protected]> * Download binary * oops * dprint --------- Co-authored-by: DaughterOfMars <[email protected]> Co-authored-by: Thibault Martinez <[email protected]>
- Loading branch information
1 parent
ea38fa7
commit 8e89d86
Showing
6 changed files
with
208 additions
and
17 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,45 @@ | ||
name: Ledgernano End-to-end Tests | ||
|
||
on: workflow_call | ||
|
||
concurrency: | ||
group: ledgernano-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ledgernano: | ||
name: Ledgernano | ||
runs-on: self-hosted | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected] | ||
|
||
- name: Install Nodejs | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # [email protected] | ||
with: | ||
node-version: "20" | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Install ledgernano dependencies | ||
run: | | ||
sudo apt-get install -y qemu-user-static | ||
sudo apt-get install -y libxcb-xinerama0 | ||
sudo pip install speculos --break-system-packages | ||
- name: Download ledgernano bin | ||
run: | | ||
sudo apt-get install -y gh | ||
echo ${{ secrets.LEDGER_APP_TOKEN }} | gh auth login --with-token | ||
gh release list --repo https://github.com/iotaledger/ledger-app-iota | ||
gh release download --repo https://github.com/iotaledger/ledger-app-iota -p nanos.tar.gz untagged-a706a550379839d8db15 | ||
tar -xvf nanos.tar.gz | ||
mv nanos/iota sdk/ledgerjs-hw-app-iota/tests/iota | ||
- name: Start speculos simulator | ||
run: speculos --api-port 5000 --display headless ./sdk/ledgerjs-hw-app-iota/tests/iota & | ||
|
||
- name: Run TS SDK ledgernano tests | ||
run: pnpm --filter @iota/ledgerjs-hw-app-iota test |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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