chore(check): run the app's tests before every push

Now that the app has real tests, tool/check.sh runs them after the server tests, and AGENTS.md's checklist says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-09-30 08:38:37 +02:00
commit 518939ee84
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64
2 changed files with 7 additions and 3 deletions

View file

@ -34,7 +34,7 @@ Checklist after doing changes, in this order:
- `dart format` (CLI) on the files you changed - `dart format` (CLI) on the files you changed
- `create_migration` and `apply_migrations` (MCP - only if necessary) - `create_migration` and `apply_migrations` (MCP - only if necessary)
- `tool/check.sh` (CLI): format check, `dart analyze --fatal-infos`, server tests. The pre-push hook runs the same script, so a push only goes through when it passes. - `tool/check.sh` (CLI): format check, `dart analyze --fatal-infos`, server and app tests. The pre-push hook runs the same script, so a push only goes through when it passes.
- Do `serverpod` MCP `hot_restart` if required (hot reload is done automatically). Will also hot restart Flutter app - Do `serverpod` MCP `hot_restart` if required (hot reload is done automatically). Will also hot restart Flutter app
- Check `serverpod` MCP `tail_server_logs` and `tail_flutter_logs` for any issues. - Check `serverpod` MCP `tail_server_logs` and `tail_flutter_logs` for any issues.

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# The checks every push has to pass: formatting, static analysis (infos are fatal too) and # The checks every push has to pass: formatting, static analysis (infos are fatal too), and
# the server tests. The pre-push hook runs this script, and a CI runner can run it later. # the server's and the app's tests. The pre-push hook runs this script, and a CI runner can
# run it later.
# #
# Install the hook in a fresh clone: ln -s ../../tool/check.sh .git/hooks/pre-push # Install the hook in a fresh clone: ln -s ../../tool/check.sh .git/hooks/pre-push
# Skip it for one push: git push --no-verify # Skip it for one push: git push --no-verify
@ -36,4 +37,7 @@ else
echo 'No server tests yet.' echo 'No server tests yet.'
fi fi
echo '▸ App tests'
(cd halkyon_learn_flutter && flutter test)
echo '✓ All checks passed.' echo '✓ All checks passed.'