forked from lf-edge/eve
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1018 Bytes
/
unit.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
---
name: Unit tests
on: # yamllint disable-line rule:truthy
push:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
pull_request:
branches:
- "master"
- "[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+-stable"
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Test
run: |
make test
- name : Test (TPM Required)
run: |
bash tools/tpm-tests-on-qemu.sh
- name: Report test results as Annotations
if: ${{ always() }}
uses: guyarb/[email protected]
with:
test-results: dist/amd64/results.json
- name: Store raw test results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: 'test-report'
path: ${{ github.workspace }}/dist
- name: Get code coverage
uses: codecov/codecov-action@v3