forked from aido/app-seed-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (58 loc) · 1.68 KB
/
ci-workflow.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
---
name: Compilation & tests
on:
workflow_dispatch:
push:
branches:
- master
- develop
tags:
- '**'
pull_request:
paths-ignore:
- '.github/workflows/*.yml'
jobs:
ledger_app_build:
name: Build application using the reusable workflow
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_build.yml@v1
with:
upload_app_binaries_artifact: compiled_app_binaries
run_for_devices: '["nanos", "nanox", "nanosp", "stax", "flex"]'
ledger_app_test_function:
name: Run ragger tests using the reusable workflow
needs: ledger_app_build
uses: LedgerHQ/ledger-app-workflows/.github/workflows/reusable_ragger_tests.yml@v1
with:
download_app_binaries_artifact: compiled_app_binaries
test_dir: tests/functional
run_for_devices: '["nanos", "stax", "flex"]'
ledger_app_test_unit:
name: Unit tests
needs: ledger_app_build
runs-on: ubuntu-latest
container:
image: ghcr.io/ledgerhq/ledger-app-builder/ledger-app-builder:latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Build unit tests
run: |
cd tests/unit/
make
- name: Generate code coverage
run: |
cd tests/unit/
make coverage
- uses: actions/upload-artifact@v4
with:
name: code-coverage
path: tests/unit/coverage
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./tests/unit/coverage.info
flags: unittests
name: codecov-app-seed-tool
fail_ci_if_error: true
verbose: true