Updated unit testing fixture to add rpm and wheel speed dependencies #14
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: CI Build | |
# Define the trigger event(s) | |
on: push | |
# Jobs run in parallel by default, each runs steps in sequence | |
jobs: | |
compile-firmware: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo and submodules | |
uses: actions/checkout@v3 | |
- name: Build stm32CubeIDE project | |
uses: xanderhendriks/[email protected] | |
with: | |
project-path: 'Firmware/Shifter_System' | |
project-target: 'Shifter_System/Debug' | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v3 | |
- name: Install Ninja | |
run: sudo apt-get install ninja-build | |
- name: Build and run unit tests | |
run: | | |
cd Firmware/Tests | |
cmake -G "Ninja" -S . -B ./build | |
cd build | |
ninja | |
./shifter-unit-tests | |