Skip to content

Commit

Permalink
Merge branch 'ci_cd' of https://github.com/vChavezB/ble_utils into ci_cd
Browse files Browse the repository at this point in the history
  • Loading branch information
vChavezB committed Apr 12, 2024
2 parents d5abd66 + 38a282a commit de82d89
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 4 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,46 @@ jobs:
- name : Upload Firmware
uses: actions/upload-artifact@v4
with:
name: zephyr-build
path: |
samples/uptime/build/zephyr/zephyr.elf
samples/uptime/build_posix/zephyr/zephyr.exe
test/renode/uptime_central/build/zephyr/zephyr.elf
test:
needs: build
runs-on: ubuntu-20.04
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Download zephyr binaries
uses: actions/download-artifact@v4
with:
name: zephyr-build

- name: Verify binaries path
run: sudo apt-get install tree -y && tree

- name: Run tests on latest Renode
uses: antmicro/[email protected]
with:
renode-version: '1.13.3'
tests-to-run: 'test/renode/uptime_test.robot'
renode-path: renode-1.13
artifacts-path: ${{ github.workspace }}


- name: Archive latest results
uses: actions/upload-artifact@v2
if: always()
with:
name: test-results-latest
path: |
report.html
log.html
robot_output.xml
4 changes: 2 additions & 2 deletions test/renode/uptime_central/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main()
}
while(1) {
LOG_INF("Sleeping");
k_sleep(K_MSEC(1000));
k_sleep(K_MSEC(10000));
}
return 0;
}
}
7 changes: 5 additions & 2 deletions test/renode/uptime_test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ Uptime Demo
Wait For Line On Uart Booting Zephyr testerId=${cen_uart}
Wait For Line On Uart Booting Zephyr testerId=${per_uart}
Wait For Line On Uart Scanning successfully started testerId=${cen_uart}
Wait For Line On Uart Bluetooth initialized testerId=${per_uart}
Wait For Line On Uart Scanning successfully started testerId=${cen_uart}
Wait For Line On Uart Bluetooth initialized testerId=${per_uart}
Wait For Line On Uart Connected testerId=${per_uart}
Wait For Line On Uart Connected testerId=${cen_uart}
Wait For Line On Uart All Chars Found testerId=${cen_uart}

0 comments on commit de82d89

Please sign in to comment.