From cd32aed849657122c0767a0addda6cad77c0353d Mon Sep 17 00:00:00 2001 From: JMO Date: Fri, 25 Sep 2026 08:09:56 -0700 Subject: [PATCH 1/2] Compile events.ts for the tests tests/ios-glanceboard.test.cjs requires .test-build/app/g2/events.js, but events.ts was not in tests/tsconfig.json, so a clean build never produced it. --- tests/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tsconfig.json b/tests/tsconfig.json index b88019f9..c24890c2 100644 --- a/tests/tsconfig.json +++ b/tests/tsconfig.json @@ -47,6 +47,7 @@ "../app/apps/timer/timer-model.ts", "../app/apps/teleprompter/script-tracker.ts", "../app/apps/nightscout/nightscout-alerts.ts", - "../app/g2/brightness-curve.ts" + "../app/g2/brightness-curve.ts", + "../app/g2/events.ts" ] } From 9de46878b07a32cdefd445195e0470a96b4debeb Mon Sep 17 00:00:00 2001 From: JMO Date: Fri, 25 Sep 2026 08:22:25 -0700 Subject: [PATCH 2/2] Run the Kotlin tests in CI npm run test:kotlin covers the shared Kotlin (protocol, flash prompt, OTA, compositor) and was not run by any workflow. --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6f0f2ce7..dce2bfd9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,3 +17,12 @@ jobs: - uses: actions/checkout@v4 - run: npm ci - run: npm test + + # The shared Kotlin tests (tests/kotlin, on the JVM host). The runner image + # already carries the JDK 17 and Android SDK the build needs. + test-kotlin: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci + - run: npm run test:kotlin