Skip to content

Commit dc2cce6

Browse files
committed
Add ci job for paparazzi verify
1 parent 6aecaf7 commit dc2cce6

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,30 @@ jobs:
6868
- name: Run Lint
6969
run: ./gradlew lintDebug
7070

71+
paparazzi-verify:
72+
runs-on: ubuntu-latest
73+
steps:
74+
- uses: actions/checkout@v4
75+
with:
76+
lfs: true
77+
- name: Set up JDK 17
78+
uses: actions/setup-java@v4
79+
with:
80+
java-version: '17'
81+
distribution: 'temurin'
82+
- name: Setup Gradle
83+
uses: gradle/actions/setup-gradle@v4
84+
- name: Accept Android SDK licenses
85+
run: yes | sdkmanager --licenses || true
86+
- name: Grant execute permission for gradlew
87+
run: chmod +x gradlew
88+
- name: Grant execute permission for lfs_check.sh
89+
run: chmod +x .github/scripts/lfs_check.sh
90+
- name: Run LFS Check
91+
run: ./.github/scripts/lfs_check.sh
92+
- name: Verify Paparazzi Snapshots
93+
run: ./gradlew verifyPaparazziDebug
94+
7195
unit-tests:
7296
runs-on: ubuntu-latest
7397
environment: staging

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ To ensure code is formatted before every commit, we use a pre-commit hook. You c
7070
```
7171
This hook will automatically run `spotlessApply` and stage any formatting changes whenever you commit.
7272

73+
#### Git LFS
74+
We use **Git LFS** to manage snapshot images for Paparazzi testing. This ensures that the repository size remains small and binary files are handled efficiently.
75+
76+
To set up Git LFS:
77+
1. Install Git LFS: `brew install git-lfs` (on macOS) or follow [installation instructions](https://git-lfs.github.com/).
78+
2. Initialize Git LFS in the repository: `git lfs install`
79+
3. Pull the LFS assets: `git lfs pull`
80+
7381
#### CI Integration
7482
Formatting is automatically verified on every Pull Request via GitHub Actions.
7583

0 commit comments

Comments
 (0)