Gate APK releases on worker factory and Matrix regression tests
Build and Release APK / Build APK (push) Failing after 2m46s

This commit is contained in:
2026-10-21 23:00:00 +02:00
parent af4e7899e3
commit d27edde5e8
6 changed files with 258 additions and 3 deletions
+20
View File
@@ -186,3 +186,23 @@ QUIK is developed and maintained by [Marcos Jones](https://github.com/octoshrimp
## License
QUIK is released under the **The GNU General Public License v3.0 (GPLv3)**, which can be found in the [LICENSE](LICENSE) file in the root of this project.
## Automated release checks
Before building or publishing APKs, Gitea Actions runs Robolectric tests against the actual
`InjectionWorkerFactory`. They construct every worker type used by Quik and the Matrix bridge,
verify SMS/MMS dependency injection, and exercise the Matrix watcher's service-start intent.
These tests use simulated Android services and mocked repositories, without sending SMS or
connecting to Matrix. Matrix room creation, client shutdown, reset and history import also have
regression tests. Signing checks run separately.
Run the same runtime gate locally with JDK 17 and the Android SDK:
```sh
./gradlew :presentation:cleanTestDebugUnitTest :remotrix-sync:cleanTestDebugUnitTest :presentation:testDebugUnitTest :remotrix-sync:testDebugUnitTest
python3 .gitea/scripts/check_test_results.py
```
The gate rejects failures, missing required suites, and skipped critical tests. A failed gate
stops the workflow before publication. These tests cover known regression scenarios; they do
not replace testing the installed Release APK on Android devices.