-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ci_cd' of https://github.com/vChavezB/ble_utils into ci_cd
- Loading branch information
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ int main() | |
} | ||
while(1) { | ||
LOG_INF("Sleeping"); | ||
k_sleep(K_MSEC(1000)); | ||
k_sleep(K_MSEC(10000)); | ||
} | ||
return 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters