release: LeanTypeDual v3.8.5 #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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). | |
| # 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 | |
| # Non-blocking for now: the suite still has ~9 failures on CI (network link tests + | |
| # the #12 known-failing set + 3 new MiscTest.isWideScreen from the v3.8.5 merge). | |
| # This RUNS the full suite and uploads the report on every PR (closing the "CI only | |
| # compiles" gap); flip continue-on-error off once those are triaged (#12) to make it a | |
| # hard gate. | |
| continue-on-error: true | |
| run: ./gradlew :app:testOfflineRunTestsUnitTest | |
| - name: Archive test reports | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-reports | |
| path: '*/build/reports' | |
| if: ${{ always() }} |