Files
tiptoi-sync/.github/workflows/ci.yml
T
arnef 8ef7b9ce8c
CI / Type-Check (push) Successful in 16s
CI / Build Android APK (push) Successful in 5m20s
Flatten repo: move client/ contents to repo root
The project is no longer a monorepo/workspace - there is only a single
app package. Remove the redundant client/ nesting: all source, the
Capacitor Android project, config files and package.json/tsconfig now
live directly at the repo root.

- Merge client/package.json into root package.json (drop the
  workspaces field and the now-unnecessary bun --cwd client wrappers).
- Merge client/bun.lock (the actual dependency lockfile) into the
  root, replacing the stale workspace-only root lockfile.
- Move src/, public/, android/, index.html, vite.config.ts,
  capacitor.config.ts, tsconfig.{app,node}.json to the repo root.
- Update Dockerfile.android to build from the repo root instead of
  cd'ing into client/.
- Update .github/workflows/ci.yml type-check step to run bun run build
  directly instead of bun --cwd client run build.
- Update README.md and .github/copilot-instructions.md to drop
  references to the client/ subdirectory.
- Drop the stale server/downloads/ entry from .gitignore (leftover
  from an old server-based architecture that no longer exists).
2026-08-13 21:52:32 +02:00

53 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
typecheck:
name: Type-Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Type-check
run: bun run build
build-apk:
name: Build Android APK
runs-on: ubuntu-latest
needs: typecheck
steps:
- uses: actions/checkout@v4
- name: Build APK via Dockerfile.android
run: ./build-apk.sh
- uses: actions/upload-artifact@v4
with:
name: tiptoi-sync-apk
path: apk-output/tiptoi-sync.apk
# Läuft immer, auch wenn der Build fehlschlägt, damit --no-cache-Images/
# Build-Cache/Container nicht den Runner-Datenträger zumüllen
# (insbesondere relevant für selbst-gehostete/Gitea-Runner).
- name: Clean up Docker/Podman build artifacts
if: always()
run: |
if command -v podman > /dev/null 2>&1; then
podman system prune -af --volumes
elif command -v docker > /dev/null 2>&1; then
docker system prune -af --volumes
fi