Skip to content

ci: upload test results in actions #5

ci: upload test results in actions

ci: upload test results in actions #5

Workflow file for this run

name: Build and Test
on:
pull_request:
branches: [ main ]
jobs:
build-hex:
name: Build Project
runs-on: ubuntu-latest
container:
image: stronglytyped/arm-none-eabi-gcc:latest
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@v3
- name: print toolchain version
run: arm-none-eabi-gcc --version
- name: build project
run: |
cd nucleo-f446re/ButtonLed
make
- name: upload build files
uses: actions/upload-artifact@v3
with:
name: BuildFiles
retention-days: 1
path: |
nucleo-f446re/ButtonLed/build/ButtonLed.elf
nucleo-f446re/ButtonLed/build/ButtonLed.hex
run-tests:
name: Run Robot tests
needs: build-hex
runs-on: ubuntu-latest
container:
image: antmicro/renode:latest
options: --user root
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@v3
- name: print renode version
run: renode --version
- name: download build files
uses: actions/download-artifact@v3
with:
name: BuildFiles
path: nucleo-f446re/ButtonLed/build
- name: run tests
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