ci: run Kotlin unit tests separately from APK builds (#3566)

Run Kotlin tests beside APK compilation while keeping merge and release checks intact. Pin the APK and test workflows to the same pull request base, retry Robolectric rate limits on both Maven Central hosts, and verify source parity when main advances.
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-12-02 16:47:42 -05:00
1 parent 5d05c36033
commit 34fff40b56
13 files changed
+381 -171

No files matched your search

+6 -1
View File
@@ -10,13 +10,18 @@ flowchart LR
Source[Pin source tree] --> Components[Prepare verified components]
Source --> Xbox[Xbox ARM64 backend]
Source --> Tests[Python and native tests]
Components --> APK[Compile APK and Android tests]
Components --> APK[Compile APK]
Xbox --> APK
APK --> Gate[Compile and test APK gate]
Tests --> Gate
Gate --> Publish[Main only: signing and publishing]
```
Kotlin unit tests run in the separate `Unit tests` workflow (`unit-tests.yml`), so a
PR test build is published as soon as the APK compiles. Build validation folds both
workflows into the `Build APK` commit status, and Release APKs requires both for the
released commit.
All workers verify the same source tree. The component artifact records that tree,
recipe identities and every output hash; the APK worker verifies the inventory
before building. This handoff verifies consistency within the same CI run. It is