Skip to content

Commit d66d49e

Browse files
committed
workflow: Add minimal Zephyr unit tests workflow for SOF CI
This commit introduces a basic GitHub Actions workflow to establish the foundation for running SOF unit tests that have been ported from cmocka to Zephyr ztest framework. The workflow currently includes: - Basic checkout step with proper fetch depth and tree filtering - West initialization and workspace setup - Environment verification step for debugging This is the first iteration of the workflow, designed to validate the basic environment setup before implementing the full test execution pipeline. The workflow will be expanded in subsequent commits to include: - Zephyr SDK installation - Complete environment configuration - Unit test compilation and execution using west twister - Test result collection and reporting Testing approach: - Triggers only on pull requests for safe testing - Minimal resource usage during initial validation - Debug output to verify workspace structure The workflow follows SOF CI patterns and prepares the groundwork for integrating ztest unit tests into the continuous integration pipeline. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 56d907a commit d66d49e

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Unit Tests (Zephyr ztest)"
2+
on: [pull_request]
3+
jobs:
4+
sof-ci-unit-tests:
5+
name: SOF CI Unit Tests
6+
runs-on: ubuntu-22.04
7+
timeout-minutes: 45
8+
9+
steps:
10+
- name: Checkout SOF repository
11+
uses: actions/checkout@v4
12+
with: {fetch-depth: 2, filter: 'tree:0'}
13+
14+
- name: west update
15+
run: |
16+
cd workspace/sof
17+
pip3 install west
18+
west init -l
19+
west update --narrow --fetch-opt=--filter=tree:0
20+
21+
- name: Test step
22+
run: |
23+
echo "pwd: $(pwd)"
24+
echo "ls -l:"
25+
ls -l
26+
echo "End"

0 commit comments

Comments
 (0)