Fix dart→flutter in CI; add pre-commit hook and install-hooks task

- ci.yml: dart run/dart test → flutter pub run/flutter test (all 3 jobs)
- hooks/pre-commit: runs flutter analyze + flutter test before every commit
- Taskfile: add install-hooks task (copies hooks/pre-commit → .git/hooks/)
- LATER.md: remove resolved items (enough_mail fork, pre-commit, GH CI)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas Güttler
2026-04-16 09:55:15 +02:00
co-authored by Claude Sonnet 4.6
parent da38948652
commit 818f66c738
4 changed files with 36 additions and 7 deletions
+4 -4
View File
@@ -23,13 +23,13 @@ jobs:
run: flutter pub get
- name: Generate Drift code
run: dart run build_runner build --delete-conflicting-outputs
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Analyze
run: flutter analyze --fatal-infos
- name: Unit tests
run: dart test test/unit/
run: flutter test test/unit/ --coverage
integration:
name: Integration tests (Stalwart)
@@ -55,7 +55,7 @@ jobs:
run: |
nix develop --command bash -c "
flutter pub get &&
dart run build_runner build --delete-conflicting-outputs &&
flutter pub run build_runner build --delete-conflicting-outputs &&
stalwart-dev/test.sh
"
@@ -83,7 +83,7 @@ jobs:
run: flutter pub get
- name: Generate Drift code
run: dart run build_runner build --delete-conflicting-outputs
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Build Linux release
run: flutter build linux --release