Files
sharedinbox/Taskfile.yml
T
Thomas GüttlerandClaude Sonnet 4.6 169e563e3d security: enforce encrypted connections; pre-commit uses check-fast
IMAP/SMTP encryption:
- connectImap throws if account.imapSsl is false
- connectSmtp removes STARTTLS plaintext fallback; startTls failure is fatal
- Remove IMAP SSL/TLS toggle from add/edit account screens (always SSL)
- UI shows "IMAP (SSL/TLS)" section label to communicate the requirement

Pre-commit speed:
- Add check-fast task (analyze + unit + widget, no build-linux, no integration)
- pre-commit hook now runs task check-fast instead of task check
- task check remains the full suite for manual/CI use

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-18 16:16:35 +02:00

111 lines
3.0 KiB
YAML

version: "3"
silent: true
tasks:
default:
desc: Run all checks (analyze + unit tests + widget tests + integration, in parallel)
deps: [check]
_nix-check:
internal: true
run: once
preconditions:
- sh: test "${DIRENV_DIR#-}" = "{{.TASKFILE_DIR}}"
msg: "Not in nix dev shell. Run: nix develop"
_flutter-check:
internal: true
run: once
deps: [_nix-check]
cmds:
- cmd: fvm install --skip-pub-get
_pub-get:
internal: true
run: once
deps: [_flutter-check]
cmds:
- fvm flutter pub get --suppress-analytics
_linux-deps-check:
internal: true
run: once
preconditions:
- sh: command -v clang >/dev/null 2>&1
msg: "Linux desktop deps missing. Run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev"
- sh: pkg-config --exists gtk+-3.0 2>/dev/null
msg: "Linux desktop deps missing. Run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev libstdc++-12-dev"
install-hooks:
desc: Install pre-commit hooks (requires pre-commit; see .pre-commit-config.yaml)
cmds:
- pre-commit install
codegen:
desc: Generate Drift DB code (run after any schema change)
deps: [_nix-check, _pub-get]
cmds:
- fvm flutter pub run build_runner build --delete-conflicting-outputs
analyze:
desc: Static analysis (flutter analyze)
deps: [_nix-check, _pub-get]
cmds:
- scripts/run_analyze.sh
analyze-fix:
desc: Auto-fix lint issues with dart fix --apply
deps: [_nix-check]
cmds:
- fvm dart fix --apply
test:
desc: Unit tests + coverage gate (fails if any non-excluded lib/ file is missing)
deps: [_nix-check, _pub-get]
cmds:
- scripts/run_unit_tests.sh
test-widget:
desc: Widget tests — headless, no display or network required
deps: [_nix-check, _pub-get]
cmds:
- scripts/run_widget_tests.sh
test-flutter:
desc: Full Flutter test suite (unit + widget + integration)
deps: [_nix-check]
cmds:
- fvm flutter test
integration:
desc: Integration tests against a local Stalwart mail server
deps: [_flutter-check]
cmds:
- stalwart-dev/test.sh
build-linux:
desc: Build the Linux desktop app (debug)
deps: [_nix-check, _linux-deps-check, _pub-get]
cmds:
- fvm flutter build linux --debug --no-pub
build-android:
desc: Build a release APK (output in build/app/outputs/flutter-apk/)
deps: [_nix-check, _pub-get]
cmds:
- fvm flutter build apk --release --no-pub
run:
desc: Run the app on Linux desktop
deps: [_nix-check, _linux-deps-check, _pub-get]
cmds:
- fvm flutter run -d linux --no-pub
check-fast:
desc: Pre-commit checks — analyze + unit tests + widget tests (no build, no integration)
deps: [analyze, test, test-widget]
check:
desc: Full check suite — analyze + unit tests + widget tests + build-linux + integration in parallel
deps: [analyze, test, test-widget, build-linux, integration]