From d1daee9cbc606b4fa746b84895785f956b42f857 Mon Sep 17 00:00:00 2001 From: karol Date: Wed, 21 Oct 2026 23:04:17 +0200 Subject: [PATCH] Pin CI to Java 17 and report full test failures --- .gitea/workflows/build.yml | 6 ++++++ README.md | 1 + presentation/build.gradle | 11 +++++++++++ 3 files changed, 18 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 260951aa..9895b910 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -17,6 +17,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 + - name: Set up Java 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + - name: Test release signing checks run: python3 -m unittest discover -s .gitea/tests -v diff --git a/README.md b/README.md index 38e28834..6da4c311 100644 --- a/README.md +++ b/README.md @@ -189,6 +189,7 @@ QUIK is released under the **The GNU General Public License v3.0 (GPLv3)**, whic ## Automated release checks +The workflow pins JDK 17 so test and build tools use the same Java runtime. 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. diff --git a/presentation/build.gradle b/presentation/build.gradle index 34553242..a85e402b 100644 --- a/presentation/build.gradle +++ b/presentation/build.gradle @@ -36,6 +36,17 @@ def releaseKeyPassword = System.getenv('ANDROID_KEY_PASSWORD') ?: System.getenv( android { compileSdk 34 + testOptions { + unitTests.all { + testLogging { + events 'failed', 'skipped' + exceptionFormat 'full' + showCauses true + showStackTraces true + } + } + } + defaultConfig { applicationId 'uk.labus.quik.remotrix' minSdkVersion 24