add chapter about running the tests to the firmware README #3
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
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 |