-
Notifications
You must be signed in to change notification settings - Fork 0
Add Flutter integration packages, tests, and CI #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a4538d8
Add Flutter integration packages and mobile SQLite example
kingwill101 135a378
Add library docs for stem_cli
kingwill101 bba6833
Add documentable libraries for example app packages
kingwill101 d25b6f7
test(flutter): add package coverage and CI workflows
kingwill101 f1891a1
docs(flutter): expand package and example readmes
kingwill101 2d01844
fix(flutter): address review feedback
kingwill101 ce9afe9
ci: resolve workspace with Flutter SDK
kingwill101 723162c
fix(flutter): address remaining PR feedback
kingwill101 b11cf3f
chore(release): remove wip package suffixes
kingwill101 759e7a5
fix(postgres): serialize migration setup
kingwill101 776d743
docs: add package table to stem readme
kingwill101 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: stem_flutter | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - main | ||
| paths: | ||
| - 'packages/stem_flutter/**' | ||
| - 'packages/stem/**' | ||
| - 'pubspec.yaml' | ||
| pull_request: | ||
| paths: | ||
| - 'packages/stem_flutter/**' | ||
| - 'packages/stem/**' | ||
| - 'pubspec.yaml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: stable | ||
| cache: true | ||
| - name: Get Dart packages cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.pub-cache | ||
| key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pub- | ||
| - name: Install dependencies | ||
| run: flutter pub get | ||
| - name: Analyze stem_flutter | ||
| working-directory: packages/stem_flutter | ||
| run: flutter analyze | ||
| - name: Run stem_flutter tests | ||
| working-directory: packages/stem_flutter | ||
| run: flutter test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| name: stem_flutter_sqlite | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - main | ||
| paths: | ||
| - 'packages/stem_flutter_sqlite/**' | ||
| - 'packages/stem_flutter/**' | ||
| - 'packages/stem_sqlite/**' | ||
| - 'packages/stem/**' | ||
| - 'pubspec.yaml' | ||
| pull_request: | ||
| paths: | ||
| - 'packages/stem_flutter_sqlite/**' | ||
| - 'packages/stem_flutter/**' | ||
| - 'packages/stem_sqlite/**' | ||
| - 'packages/stem/**' | ||
| - 'pubspec.yaml' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install system dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y sqlite3 libsqlite3-dev | ||
| - uses: subosito/flutter-action@v2 | ||
| with: | ||
| channel: stable | ||
| cache: true | ||
| - name: Get Dart packages cache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: ~/.pub-cache | ||
| key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pub- | ||
| - name: Install dependencies | ||
| run: flutter pub get | ||
| - name: Analyze stem_flutter_sqlite | ||
| working-directory: packages/stem_flutter_sqlite | ||
| run: flutter analyze | ||
| - name: Run stem_flutter_sqlite tests | ||
| working-directory: packages/stem_flutter_sqlite | ||
| run: flutter test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
packages/stem/example/email_service/lib/stem_email_service_example.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /// Email notification service example built on top of Stem. | ||
| /// | ||
| /// This package is an application-style example rather than a reusable | ||
| /// library. Use `dart run bin/enqueuer.dart` to start the HTTP enqueue API and | ||
| /// `dart run bin/worker.dart` to start the worker that delivers messages via | ||
| /// SMTP. | ||
| /// | ||
| /// The surrounding package assets, including `routing.yaml`, | ||
| /// `docker-compose.yml`, and `.env.example`, demonstrate how to connect the | ||
| /// example to Redis and MailHog for local development. | ||
| library; |
6 changes: 6 additions & 0 deletions
6
packages/stem/example/encrypted_payload/enqueuer/lib/stem_encrypted_enqueuer.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /// Enqueues encrypted payloads before handing them to Stem. | ||
| /// | ||
| /// This package is an executable example rather than a reusable library. Run | ||
| /// the scripts under `bin/` to publish encrypted tasks into the example | ||
| /// workflow. | ||
| library; |
6 changes: 6 additions & 0 deletions
6
packages/stem/example/encrypted_payload/worker/lib/stem_encrypted_worker.dart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| /// Worker that decrypts payloads after pulling from the broker. | ||
| /// | ||
| /// This package is an executable example rather than a reusable library. Run | ||
| /// the scripts under `bin/` to process encrypted tasks inside the example | ||
| /// workflow. | ||
| library; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Miscellaneous | ||
| *.class | ||
| *.log | ||
| *.pyc | ||
| *.swp | ||
| .DS_Store | ||
| .atom/ | ||
| .build/ | ||
| .buildlog/ | ||
| .history | ||
| .svn/ | ||
| .swiftpm/ | ||
| migrate_working_dir/ | ||
|
|
||
| # IntelliJ related | ||
| *.iml | ||
| *.ipr | ||
| *.iws | ||
| .idea/ | ||
|
|
||
| # The .vscode folder contains launch configuration and tasks you configure in | ||
| # VS Code which you may wish to be included in version control, so this line | ||
| # is commented out by default. | ||
| #.vscode/ | ||
|
|
||
| # Flutter/Dart/Pub related | ||
| **/doc/api/ | ||
| **/ios/Flutter/.last_build_id | ||
| .dart_tool/ | ||
| .flutter-plugins-dependencies | ||
| .pub-cache/ | ||
| .pub/ | ||
| /build/ | ||
| /coverage/ | ||
| flutter_*.png | ||
|
|
||
| # Symbolication related | ||
| app.*.symbols | ||
|
|
||
| # Obfuscation related | ||
| app.*.map.json | ||
|
|
||
| # Android Studio will place build artifacts here | ||
| /android/app/debug | ||
| /android/app/profile | ||
| /android/app/release |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.