Skip to content
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

Move cqrs to a separate package #27

Merged
merged 22 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3647bce
Separate cqrs and no-cqrs utils
michalina-majewska Jun 19, 2024
0aa5001
Provide an example without cqrs
michalina-majewska Jun 19, 2024
4962cb3
Fix selecting filters and users in example
michalina-majewska Jun 19, 2024
df65560
Move both packages to packages folder
michalina-majewska Jun 19, 2024
763188f
Remove redundant toJson() call
michalina-majewska Jun 19, 2024
489916d
Start tests for no cqrs package
michalina-majewska Jun 19, 2024
a4fe6b8
Use explicit cast in Json converters
michalina-majewska Jun 20, 2024
71193c9
Use enum for http status codes
michalina-majewska Jun 20, 2024
3edf95d
Make basic tests use http mockup instead of cqrs
michalina-majewska Jun 20, 2024
73cdc9c
Remove cqrs from paginated tests
michalina-majewska Jun 20, 2024
c845fbe
Replace missed magic numbers
michalina-majewska Jun 20, 2024
a475449
Use map for json decoding
michalina-majewska Jun 20, 2024
291bb55
Add spacings
michalina-majewska Jun 20, 2024
f423d42
Update workflows
michalina-majewska Jun 20, 2024
bca1c84
Use single quotes in yaml
michalina-majewska Jun 20, 2024
f9d34da
Change sdk version in copied package
michalina-majewska Jun 20, 2024
908e2ce
Temporarily add publish_to: none in *_cqrs package, make publish dry …
michalina-majewska Jun 20, 2024
d44db42
Update READMEs
michalina-majewska Jun 24, 2024
4438d54
Use checkout v4
michalina-majewska Jun 24, 2024
59f6872
Use expression body in examples
michalina-majewska Jun 24, 2024
a9f2fb5
Bump leancode_cubit_utils version to 0.1.0
michalina-majewska Jun 24, 2024
7d189a6
Fix changelog
michalina-majewska Jun 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: publish
name: publish leancode_cubit_utils

on:
push:
tags: ['v*']
tags: ['leancode_cubit_utils-v*']

jobs:
publish:
Expand All @@ -14,9 +14,13 @@ jobs:
id-token: write
contents: write

defaults:
run:
working-directory: packages/leancode_cubit_utils

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Dart
uses: dart-lang/setup-dart@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: leancode_cubit_utils test
on:
push:
branches: [main]
tags-ignore: ['v*']
tags-ignore: ['leancode_cubit_utils-v*']
paths:
- 'packages/leancode_cubit_utils/**'
pull_request:
branches: [main]
paths:
- 'packages/leancode_cubit_utils/**'

jobs:
test:
Expand All @@ -18,9 +22,13 @@ jobs:
include:
- version: '3.19.x'

defaults:
run:
working-directory: packages/leancode_cubit_utils

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
Expand All @@ -41,6 +49,4 @@ jobs:
run: flutter test

- name: Dry run pub publish
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1
with:
dry-run: true
run: dart pub publish --dry-run || true
37 changes: 37 additions & 0 deletions .github/workflows/leancode_cubit_utils_cqrs-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: publish leancode_cubit_utils_cqrs

on:
push:
tags: ['leancode_cubit_utils_cqrs-v*']

jobs:
publish:
name: Publish to pub.dev

runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

defaults:
run:
working-directory: packages/leancode_cubit_utils_cqrs

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Dart
uses: dart-lang/setup-dart@v1
with:
sdk: 3.2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.19.x
cache: true

- name: Publish and release
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1
52 changes: 52 additions & 0 deletions .github/workflows/leancode_cubit_utils_cqrs-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: leancode_cubit_utils_cqrs test

on:
push:
branches: [main]
tags-ignore: ['leancode_cubit_utils_cqrs-v*']
paths:
- 'packages/leancode_cubit_utils_cqrs/**'
pull_request:
branches: [main]
paths:
- 'packages/leancode_cubit_utils_cqrs/**'

jobs:
test:
name: Flutter ${{ matrix.version }}

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- version: '3.19.x'

defaults:
run:
working-directory: packages/leancode_cubit_utils_cqrs

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.version }}
cache: true

- name: Download pub dependencies
run: flutter pub get

- name: Check formatting
run: dart format --set-exit-if-changed --output none .

- name: Run analyzer
run: flutter analyze --fatal-warnings --fatal-infos

- name: Run tests
run: flutter test

- name: Dry run pub publish
run: dart pub publish --dry-run || true
Loading