Skip to content

add chapter about running the tests to the firmware README #3

add chapter about running the tests to the firmware README

add chapter about running the tests to the firmware README #3

Workflow file for this run

name: Firmware CI
on:
push:
paths:
- "firmware/**"
pull_request:
paths:
- "firmware/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Arduino CLI
run: |
curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh
mv bin/arduino-cli /usr/local/bin/arduino-cli
arduino-cli config init
arduino-cli core update-index
arduino-cli core install arduino:avr
- name: Install Make
run: sudo apt-get install make
- name: Compile Firmware
run: make compile
working-directory: ./firmware
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Install make
run: sudo apt-get install make
- name: Build and run tests in Docker
run: make tests-in-docker
working-directory: ./firmware