Skip to content

release: bump to 3.9.1 (3910) + changelog (#90) #79

release: bump to 3.9.1 (3910) + changelog (#90)

release: bump to 3.9.1 (3910) + changelog (#90) #79

name: Unit tests
# Compiles main + runs the JVM unit-test suite for the offline flavor using the `runTests`
# build type, which self-skips the network/data-dependent tests known to fail on CI
# (see `if (BuildConfig.BUILD_TYPE == "runTests") return` in XLinkTest/StringUtilsTest/
# InputLogicTest/KeyboardParserTest; tracked in issue #12). Hard gate: a real test failure
# fails the job. No APK is produced; single-ABI, JVM tests only.
on:
pull_request:
branches: [ dev, main ]
paths:
- 'app/**'
- 'gradle/**'
- '*.gradle*'
- 'gradle.properties'
- '.github/workflows/build-test-auto.yml'
push:
branches: [ dev ]
paths:
- 'app/**'
- 'gradle/**'
- '*.gradle*'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v3
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run unit tests
run: ./gradlew :app:testOfflineRunTestsUnitTest
- name: Archive test reports
uses: actions/upload-artifact@v4
with:
name: test-reports
path: '*/build/reports'
if: ${{ always() }}