forked from bnb-chain/ledger-app-binance
-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.23 KB
/
build_and_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Compilation & tests
on:
workflow_dispatch:
push:
branches:
- master
- develop
pull_request:
jobs:
build_application:
name: Build application
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
upload_app_binaries_artifact: compiled_app_binaries
e2e_tests:
name: Binance e2e tests
strategy:
matrix:
device: ["nanos", "nanox", "nanosp", "stax", "flex"]
fail-fast: false
needs:
- build_application
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Build/Install build js deps
run: cd tests_zemu && npm install
- name: Download app binaries
uses: actions/download-artifact@v4
with:
name: compiled_app_binaries
path: build
- name: Run zemu tests
run: cd tests_zemu && npm run test -- -t "\(${{ matrix.device }}\)"
- name: Upload snapshots
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.device }}-zemu-snapshots
path: tests_zemu/snapshots-tmp/