Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
antevir committed Feb 7, 2024
1 parent e2d25ba commit 937829c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
40 changes: 29 additions & 11 deletions .github/workflows/ceedling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Ceedling Unit Tests

on:
push:
branches: [ master ]
branches: [ master,anan_zephyr_test ]
pull_request:
branches: [ master ]

Expand All @@ -12,20 +12,38 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
- name: Checkout
uses: actions/checkout@v3
with:
path: ucxclient

- name: Set up Python
uses: actions/setup-python@v4
with:
ruby-version: 2.7
- name: Install Ceedling
run: gem install ceedling
- name: Run Unit Tests
python-version: 3.11

- name: Copy west.yml
shell: bash
run: |
ceedling test:all
cp ucxclient/zephyr/ci-dummy-west.yml ucxclient/west.yml
- name: Setup Zephyr project
uses: zephyrproject-rtos/action-zephyr-setup@v1
with:
app-path: ucxclient
toolchains: x86_64-zephyr-elf

- name: Build firmware
working-directory: ucxclient/
shell: bash
run: |
west twister -T zephyr/ --integration
- name: Process Test results
uses: dorny/test-reporter@v1
if: always() # always run even if the previous step fails
with:
name: Unit Test Results
path: 'build/artifacts/test/report_junit.xml'
reporter: jest-junit
working-directory: ucxclient/
path: 'twister-out/twister_report.xml'
reporter: java-junit
15 changes: 15 additions & 0 deletions zephyr/ci-dummy-west.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
manifest:
self:
west-commands: scripts/west-commands.yml

remotes:
- name: zephyrproject-rtos
url-base: https://github.com/zephyrproject-rtos

projects:
- name: zephyr
remote: zephyrproject-rtos
revision: main
import:
name-allowlist:
- cmsis # required by the ARM port

0 comments on commit 937829c

Please sign in to comment.