-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (96 loc) · 3.72 KB
/
reusable_swap_functional_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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Reusable swap functional tests
on:
workflow_call:
inputs:
repo_for_exchange:
required: false
default: 'functori/app-exchange'
type: string
branch_for_exchange:
required: false
default: 'develop'
type: string
branch_for_tezos:
required: false
default: 'main'
type: string
branch_for_ethereum:
required: false
default: 'stax_1.3.0_1.10.4-dev_sdk_969427eeb6b3b209ef71ee94c60a06b6c897717a'
type: string
run_for_devices:
description: 'The list of device(s) on which the test will run (defaults to ["nanos", "nanox", "nanosp", "stax"])'
required: false
default: '["nanos", "nanox", "nanosp", "stax"]'
type: string
test_filter:
required: false
default: '""'
type: string
jobs:
build_sideloaded_applications_tezos:
name: Build sideloaded applications using the reusable workflow for tezos
strategy:
fail-fast: false
matrix:
coin:
- name: tezos_new
repo: trilitech/ledger-app-tezos-wallet
branch: ${{ inputs.branch_for_tezos }}
relative_app_directory: 'app'
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: ${{ matrix.coin.repo }}
app_branch_name: ${{ matrix.coin.branch }}
relative_app_directory: ${{ matrix.coin.relative_app_directory }}
flags: "COIN=${{ matrix.coin.name }} CHAIN=${{ matrix.coin.name }} DEBUG=1"
upload_app_binaries_artifact: libraries_binaries
upload_as_lib_artifact: ${{ matrix.coin.name }}
run_for_devices: ${{ inputs.run_for_devices }}
build_sideloaded_applications_ethereum:
name: Build sideloaded applications using the reusable workflow for ethereum
strategy:
fail-fast: false
matrix:
coin:
- name: ethereum
repo: LedgerHQ/app-ethereum
branch: ${{ inputs.branch_for_ethereum }}
relative_app_directory: '.'
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: ${{ matrix.coin.repo }}
app_branch_name: ${{ matrix.coin.branch }}
relative_app_directory: ${{ matrix.coin.relative_app_directory }}
flags: "COIN=${{ matrix.coin.name }} CHAIN=${{ matrix.coin.name }} DEBUG=1"
upload_app_binaries_artifact: libraries_binaries
upload_as_lib_artifact: ${{ matrix.coin.name }}
run_for_devices: ${{ inputs.run_for_devices }}
build_sideloaded_applications:
name: Build sideloaded applications using the reusable workflow
needs:
- build_sideloaded_applications_tezos
- build_sideloaded_applications_ethereum
build_exchange_application:
name: Build application using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
app_repository: ${{ inputs.repo_for_exchange }}
app_branch_name: ${{ inputs.branch_for_exchange }}
flags: "TESTING=1 TEST_PUBLIC_KEY=1 DEBUG=1"
upload_app_binaries_artifact: exchange_binaries
run_for_devices: ${{ inputs.run_for_devices }}
ragger_tests:
name: Run ragger tests using the reusable workflow
needs:
- build_exchange_application
- build_sideloaded_applications
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
app_repository: ${{ inputs.repo_for_exchange }}
app_branch_name: ${{ inputs.branch_for_exchange }}
download_app_binaries_artifact: exchange_binaries
lib_binaries_artifact: libraries_binaries
test_dir: test/python
run_for_devices: ${{ inputs.run_for_devices }}
test_filter: ${{ inputs.test_filter }}