Files
LLeMbas-Android/.github/workflows/ci.yml
T
HomerandClaude Opus 5.5 052d0a3894 Pin the server contract and tokens to LLeMbas 2.0 (server dev f5b3dbb)
The contract moves from v1.7.0 to the server's dev at f5b3dbb965823ade: event_canvas.json is
gone (2.0 has no canvas) and the chat detail no longer carries knowledge_bases. The app modelled
neither, so no model changes; ContractTest now says the canvas fixture is absent and that a
canvas frame from an older stream is ignored.

Tokens from the same commit: only --selection is new among the colours, and it is now in the
palette and used for selected text, as on the web UI. CI also runs on pushes to dev, where 2.0
is built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 04:30:38 +00:00

64 lines
1.8 KiB
YAML

name: CI
on:
push:
branches: [main, dev]
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- name: Nothing private in the repository
run: scripts/hygiene.sh
- name: Generated files match their sources
run: |
python3 scripts/fetch-tokens.py # Tokens.kt matches tokens.lock.json
python3 scripts/fetch-contract.py # contract/ matches contract/lock.json
python3 scripts/gen-strings.py --check
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: ktlint (signature-checked)
run: |
curl -sSfL -o ktlint https://github.com/pinterest/ktlint/releases/download/1.8.0/ktlint
echo "a3fd620207d5c40da6ca789b95e7f823c54e854b7fade7f613e91096a3706d75 ktlint" | sha256sum -c
chmod +x ktlint
./ktlint "app/src/**/*.kt" "*.kts" "app/*.kts"
- uses: gradle/actions/wrapper-validation@v4
- uses: gradle/actions/setup-gradle@v4
- name: Unit tests and both builds
run: ./gradlew --no-daemon testFullDebugUnitTest assembleFullDebug assembleFdroidDebug
- name: Android lint (report only, for now)
run: ./gradlew --no-daemon lintFullDebug
continue-on-error: true
- uses: actions/upload-artifact@v4
with:
name: llembas-android-debug
path: app/build/outputs/apk/*/debug/*.apk
if-no-files-found: error
- uses: actions/upload-artifact@v4
if: always()
with:
name: reports
path: |
app/build/reports/
app/build/test-results/
if-no-files-found: ignore