Fix P2 review findings: CC range floor, brightness floor, buzzer pitc… #2
This file contains hidden or 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: Unit Tests | |
| on: | |
| push: | |
| branches: [ main, dev ] | |
| pull_request: | |
| branches: [ main, dev ] | |
| # Host-side (native x86-64) unit tests for the hardware-free logic headers. | |
| # This is a completely separate toolchain from the firmware build in ci.yml: | |
| # no Pico SDK, no ARM cross-compiler — just a native C++20 compiler running the | |
| # Snitch suite under AddressSanitizer + UndefinedBehaviorSanitizer. | |
| # See test/README.md and notes/UNIT_TEST.md. | |
| jobs: | |
| host-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| # The tested headers pull in the TPS26750 multiplatform driver's data | |
| # types (native branch), so its submodule must be present. | |
| submodules: recursive | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake ninja-build build-essential | |
| - name: Configure | |
| run: cmake -G Ninja -B test/build -S test | |
| - name: Build | |
| run: cmake --build test/build | |
| - name: Run tests | |
| working-directory: test/build | |
| run: ctest --output-on-failure |