Skip to content

Debloat your Android TV, install apps, browse and transfer files on it, all from your phone. Just 3 MB, no tracking, no root, no PC.

Add CI workflow: build, unit tests, lint on PRs and main

jesse-agent-3628539ce8bf00a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..07892e6
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,42 @@
+name: CI
+
+on:
+ pull_request:
+ push:
+ branches: [main]
+
+permissions:
+ contents: read
+
+concurrency:
+ group: ci-${{ github.ref }}
+ cancel-in-progress: true
+
+jobs:
+ build:
+ name: Build, unit tests, lint
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v7
+
+ # JDK 25: Kadb ships Java 25 bytecode, so :adb tests need a 25 runtime.
+ - uses: actions/setup-java@v6
+ with:
+ distribution: temurin
+ java-version: 25
+
+ - uses: gradle/actions/setup-gradle@v6
+
+ # build = assemble (debug + release) + unit tests + Android lint
+ - run: ./gradlew build --console=plain
+
+ - name: Upload reports on failure
+ if: failure()
+ uses: actions/upload-artifact@v7
+ with:
+ name: reports
+ path: |
+ **/build/reports/
+ **/build/test-results/
+ retention-days: 7