diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dcd067d..bbc23e1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,7 +8,28 @@ on: types: [published] jobs: + test: + name: Unit tests + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install PlatformIO + run: pip install platformio + + - name: Run native unit tests + run: pio test -e native + build: + # Don't build or publish firmware that fails its tests. + needs: test permissions: write-all name: ${{ matrix.name }} runs-on: ubuntu-latest