mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-19 12:18:43 -04:00
feat: add Compose Preview Screenshot Testing infrastructure (#5410)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/pull-request.yml
vendored
1
.github/workflows/pull-request.yml
vendored
@@ -35,6 +35,7 @@ jobs:
|
||||
- 'desktop/**'
|
||||
- 'core/**'
|
||||
- 'feature/**'
|
||||
- 'screenshot-tests/**'
|
||||
# Shared build infrastructure
|
||||
- 'build-logic/**'
|
||||
- 'config/**'
|
||||
|
||||
14
.github/workflows/reusable-check.yml
vendored
14
.github/workflows/reusable-check.yml
vendored
@@ -103,6 +103,20 @@ jobs:
|
||||
if: inputs.run_lint == false
|
||||
run: ./gradlew kmpSmokeCompile -Pci=true --continue --scan
|
||||
|
||||
- name: Screenshot Test Validation
|
||||
id: screenshot-validation
|
||||
if: inputs.run_lint == true
|
||||
run: ./gradlew :screenshot-tests:validateDebugScreenshotTest -Pci=true --scan
|
||||
|
||||
- name: Upload screenshot diff report
|
||||
if: always() && steps.screenshot-validation.outcome == 'failure'
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: screenshot-diff-report
|
||||
path: screenshot-tests/build/reports/screenshotTest/
|
||||
retention-days: 14
|
||||
if-no-files-found: warn
|
||||
|
||||
# ── Reproducible Build Verification ─────────────────────────────────
|
||||
rb-check:
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
Reference in New Issue
Block a user