Add basic test harness using munit

This commit is contained in:
CinderSocket
2026-03-08 18:12:48 -07:00
parent 5426d47f1f
commit 54c20878ec
14 changed files with 620 additions and 11 deletions
+11 -8
View File
@@ -1,4 +1,4 @@
name: "FAP: Build and lint"
name: "FAP: Build, test, and lint"
on: [push, pull_request]
jobs:
ufbt-build-action:
@@ -9,20 +9,23 @@ jobs:
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
with:
sdk-channel: release
task: setup
- name: Run host tests
run: make test-host
- name: Lint sources
run: ufbt lint ARGS="!./tests/host/vendor/munit"
- name: Build with ufbt
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
id: build-app
with:
skip-setup: true
sdk-channel: release
- name: Upload app artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
# You can remove this step if you don't want to check source code formatting
- name: Lint sources
uses: flipperdevices/flipperzero-ufbt-action@v0.1.2
with:
# skip SDK setup, we already did it in previous step
skip-setup: true
task: lint