Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abenso committed Sep 11, 2024
1 parent 003fd2f commit a0d28e7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 331 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,17 @@ jobs:
test_zemu:
runs-on: ${{ github.repository_owner == 'zondax' && 'zondax-runners' || 'ubuntu-latest' }}
steps:
- name: Test
run: |
id
echo $HOME
echo $DISPLAY
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y curl protobuf-compiler build-essential git wget unzip python3 python3-pip \
libssl-dev libffi-dev libreadline-dev zlib1g-dev libbz2-dev libsqlite3-dev libncurses5-dev \
libgdbm-dev libnss3-dev liblzma-dev libxml2-dev libxmlsec1-dev libffi-dev libyaml-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- run: sudo apt-get update -y && sudo apt-get install -y libusb-1.0.0 libudev-dev
libgdbm-dev libnss3-dev liblzma-dev libxml2-dev libxmlsec1-dev libffi-dev libyaml-dev \
libusb-1.0.0 libudev-dev
- name: Install rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -109,10 +104,16 @@ jobs:
node-version: 18
- name: Install yarn
run: |
npm install -g yarn
- name: Build and run zemu tests
npm install -g [email protected]
- name: Clear yarn cache
run: yarn cache clean
- name: Install dependencies with yarn
run: |
make test_all
cd tests_zemu
yarn install --network-timeout 300000 --offline || yarn install --network-timeout 300000
working-directory: ${{ github.workspace }}
- name: Build and run zemu tests
run: make test_all
- name: Upload Snapshots (only failure)
if: ${{ failure() }}
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
"sort-package-json": "^2.10.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
"typescript": "^4.4.3"
}
}
314 changes: 0 additions & 314 deletions tests_zemu/tests/legacy.test.ts

This file was deleted.

1 change: 0 additions & 1 deletion tests_zemu/tests/testscases/transactions.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { PATH } from '../common'
import { TransferTxType } from '@zondax/ledger-kadena'
import Kda from 'hw-app-kda'

export const TRANSACTIONS_TEST_CASES = [
{
Expand Down
1 change: 0 additions & 1 deletion tests_zemu/types/hw-app-kda.d.ts

This file was deleted.

0 comments on commit a0d28e7

Please sign in to comment.