mirror of
https://github.com/bettse/seader.git
synced 2026-05-26 07:34:19 +00:00
Add basic test harness using munit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user