Deviations from a stock `serverpod create`:
- Dropped Flutter web support, for two reasons:
- Appflowy editor had issues in the past, potentially related to the
Flutter-Web IME bridge. Upstream has also open bugs in relation to
that:
- AppFlowy-IO/appflowy-editor#1029 [Bug][Web] Unwanted space on click
and overall space bugs (open)
- AppFlowy-IO/appflowy-editor#782 [Bug] Editor auto-scrolling when
pressing space too quickly if placed inside a scrollable (open)
- Offline-first is a required feature. serverpod_offline_sync's SQLite
support in browsers, maybe via sqlite3.wasm + OPFS, is not
documented.
- SDK constraints raised to ^3.13.0, instead of ^3.12.2, so enjoy the
newest language features.
- Pinned to Flutter 3.47.4 via FVM.
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
45 lines
1 KiB
YAML
45 lines
1 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
VERSION: '4.0.0'
|
|
SERVERPOD_PASSWORD_database: 'h8hg2NM2Ho1N7Zv-WxwJyhfJC76hxy6h'
|
|
SERVERPOD_PASSWORD_redis: 'JRcMj86Jrhg4s6soZ_DShJqQilJGzEJo'
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: subosito/flutter-action@v2
|
|
with:
|
|
flutter-version: '3.44.4'
|
|
|
|
- name: Start containers
|
|
working-directory: halkyon_learn_server
|
|
run: docker compose up --quiet-pull --build -d
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Install Serverpod CLI
|
|
run: dart install serverpod_cli $VERSION
|
|
|
|
- name: Run Serverpod generator
|
|
working-directory: halkyon_learn_server
|
|
run: serverpod generate
|
|
|
|
- name: Run tests
|
|
working-directory: halkyon_learn_server
|
|
run: dart test
|
|
|
|
- name: Stop containers
|
|
if: always()
|
|
working-directory: halkyon_learn_server
|
|
run: docker compose down -v
|