Skip to content

Commit

Permalink
Merge pull request #27 from leancodepl/chore/move-cqrs-to-separate-pa…
Browse files Browse the repository at this point in the history
…ckage

Move cqrs to a separate package
  • Loading branch information
michalina-majewska authored Jun 24, 2024
2 parents 2b45fbf + 7d189a6 commit fb65e2f
Show file tree
Hide file tree
Showing 320 changed files with 8,763 additions and 542 deletions.
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

0 comments on commit fb65e2f

Please sign in to comment.