-
Notifications
You must be signed in to change notification settings - Fork 10
68 lines (57 loc) · 2.17 KB
/
Copy pathbasic_w_report.yml
File metadata and controls
68 lines (57 loc) · 2.17 KB
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
name: Compile - Run - Report
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: '30 22 * * 0' # Run every Sunday at 22:30
permissions:
contents: read
actions: read
checks: write
jobs:
CI_test_run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# Install Python used by the report utility
- name: Setup Python 3.13
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install Python packages
run:
pip install junit_reporter
# Install vcpkg tools from the vcpkg-configuration.json and activate an Arm tools license
- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
- name: Build
run: |
echo "Building get started example ..."
cbuild get_started.csolution.yml --packs --update-rte --context .debug+avh
- name: Execute
run: |
echo "Running get started example ..."
FVP_MPS2_Cortex-M3 --simlimit 10 -f Project/fvp_config.txt -a out/Project/avh/debug/Project.axf | tee Project.avh.log
- name: Convert log to junit
if: success() || failure()
run: |
echo "Converting log to junit..."
python Project/report.py Project.avh.log
cat Project.avh.xml
# Upload the junit report to the check run of the workflow
- name: Test Report
uses: phoenix-actions/test-reporting@v16
if: success() || failure() # run this step even if previous step failed
with:
name: Test Report # Name of the check run which will be created
path: Project.avh.xml # Path to test results
reporter: jest-junit # Format of test results
# This keeps one workflow and avoids creating a Check Run on PRs, where fork tokens may be read-only.
# After merge / push to main, it still creates the Check Run.
output-to: ${{ github.event_name == 'pull_request' && 'step-summary' || 'checks' }}