Skip to content

fix: add user root

fix: add user root #18

Workflow file for this run

name: Build and Test

Check failure on line 1 in .github/workflows/build_test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_test.yml

Invalid workflow file

(Line: 43, Col: 9): Unexpected value 'options'
on:
pull_request:
branches: [ main ]
jobs:
build-project:
name: Build Project
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: build project
uses: docker://stronglytyped/arm-none-eabi-gcc:latest
with:
args: /bin/sh -c "arm-none-eabi-gcc --version && make build"
- name: upload build files
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: BuildFiles
retention-days: 1
if-no-files-found: error
path: |
nucleo-f446re/ButtonLed/build/ButtonLed.elf
nucleo-f446re/ButtonLed/build/ButtonLed.hex
run-tests:
name: Run Robot tests
needs: build-project
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: download build files
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: BuildFiles
path: nucleo-f446re/ButtonLed/build
- name: run tests
uses: docker://antmicro/renode:latest
options: --user root
with:
args: >
/bin/bash -c "
apt-get update && apt-get install -y make &&
renode --version &&
make test
"
- name: upload results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: TestResults
retention-days: 1
path: |
log.html
report.html