Skip to content

Commit

Permalink
ci: upload test results in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
prdktntwcklr committed Sep 29, 2023
1 parent 96bada1 commit 140c641
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build-hex:
name: Build Hex file
name: Build Project
runs-on: ubuntu-latest
container:
image: stronglytyped/arm-none-eabi-gcc:latest
Expand All @@ -16,12 +16,14 @@ jobs:
uses: actions/checkout@v3
- name: print toolchain version
run: arm-none-eabi-gcc --version
- name: build hex file
run: cd nucleo-f446re/ButtonLed && make
- name: upload build artifact
- name: build project
run: |
cd nucleo-f446re/ButtonLed
make
- name: upload build files
uses: actions/upload-artifact@v3
with:
name: ButtonLed
name: BuildFiles
retention-days: 1
path: |
nucleo-f446re/ButtonLed/build/ButtonLed.elf
Expand All @@ -37,10 +39,21 @@ jobs:
steps:
- name: checkout code
uses: actions/checkout@v3
- name: download hex file
- name: print renode version
run: renode --version
- name: download build files
uses: actions/download-artifact@v3
with:
name: ButtonLed
name: BuildFiles
path: nucleo-f446re/ButtonLed/build
- name: run tests
run: renode-test tests/test-button.robot
run: renode-test tests/test-button.robot
- name: upload results
uses: actions/upload-artifact@v3
with:
name: TestResults
retention-days: 1
path: |
robot_output.xml
log.html
report.html

0 comments on commit 140c641

Please sign in to comment.