-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 2.4 KB
/
_test_devices.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
name: Test apps on given SDK ref
on:
workflow_dispatch:
inputs:
sdk_ref_nanosp:
type: string
required: false
default: 'API_LEVEL_1'
run_nanosp:
type: boolean
required: false
default: true
sdk_ref_nanox:
type: string
required: false
default: 'API_LEVEL_5'
run_nanox:
type: boolean
required: false
default: true
sdk_ref_stax:
type: string
required: false
default: 'API_LEVEL_12'
run_stax:
type: boolean
required: false
default: true
jobs:
test:
name: Test for all targets
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone Repo
uses: actions/checkout@v3
- name: Setup repos
run: |
python3 scripts/build_and_test/main.py --input_file input_files/test_input.json
- name: Launch test nanosp
if: ${{ inputs.run_nanosp }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanosp }} --input_file input_files/test_input.json --test --nanosp --skip_setup --output_file test_nanosp.json
- name: Launch test nanox
if: ${{ inputs.run_nanox }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanox }} --input_file input_files/test_input.json --test --nanox --skip_setup --output_file test_nanox.json
- name: Launch test stax
if: ${{ inputs.run_stax }}
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_stax }} --input_file input_files/test_input.json --test --stax --skip_setup --output_file test_stax.json
- name: Merge output files
run: |
python3 scripts/output_scripts/merge.py --input_pattern "test_*.json" --output_file test_output.json --merge_key "name"
- name: Archive output file
uses: actions/upload-artifact@v3
with:
name: report.json
path: test_output.json
- name: Convert to markdown
run: |
python3 scripts/output_scripts/convert.py --input_file test_output.json --output_file out.md
cat out.md >> $GITHUB_STEP_SUMMARY
- name: Set job status
run: |
python3 scripts/output_scripts/status.py --input_file test_output.json