Merge pull request #798 from GetStream/xsahil03x-patch-1
ci(repo): fix melos bs for transitive deps
This commit is contained in:
@@ -3,6 +3,7 @@ name: stream_flutter_workflow
|
|||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
||||||
flutter_version: "2.5.1"
|
flutter_version: "2.5.1"
|
||||||
|
melos_version: "1.0.0-dev.10"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -31,7 +32,7 @@ jobs:
|
|||||||
flutter-version: ${{ env.flutter_version }}
|
flutter-version: ${{ env.flutter_version }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
run: |
|
run: |
|
||||||
flutter pub global activate melos 1.0.0-dev.10
|
flutter pub global activate melos ${{ env.melos_version }}
|
||||||
- name: "Bootstrap Workspace"
|
- name: "Bootstrap Workspace"
|
||||||
run: melos bootstrap
|
run: melos bootstrap
|
||||||
- name: "Dart Analyze"
|
- name: "Dart Analyze"
|
||||||
@@ -60,7 +61,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
flutter-version: ${{ env.flutter_version }}
|
flutter-version: ${{ env.flutter_version }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
run: flutter pub global activate melos
|
run: |
|
||||||
|
flutter pub global activate melos ${{ env.melos_version }}
|
||||||
- name: "Bootstrap Workspace"
|
- name: "Bootstrap Workspace"
|
||||||
run: melos bootstrap
|
run: melos bootstrap
|
||||||
- name: "Melos Format"
|
- name: "Melos Format"
|
||||||
@@ -71,7 +73,7 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
timeout-minutes: 15
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- name: "Git Checkout"
|
- name: "Git Checkout"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -88,7 +90,7 @@ jobs:
|
|||||||
flutter-version: ${{ env.flutter_version }}
|
flutter-version: ${{ env.flutter_version }}
|
||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
run: |
|
run: |
|
||||||
flutter pub global activate melos
|
flutter pub global activate melos ${{ env.melos_version }}
|
||||||
pub global activate remove_from_coverage
|
pub global activate remove_from_coverage
|
||||||
- name: "Bootstrap Workspace"
|
- name: "Bootstrap Workspace"
|
||||||
run: melos bootstrap
|
run: melos bootstrap
|
||||||
@@ -120,4 +122,4 @@ jobs:
|
|||||||
uses: VeryGoodOpenSource/[email protected]
|
uses: VeryGoodOpenSource/[email protected]
|
||||||
with:
|
with:
|
||||||
path: packages/stream_chat_flutter/coverage/lcov.info
|
path: packages/stream_chat_flutter/coverage/lcov.info
|
||||||
min_coverage: 67
|
min_coverage: 67
|
||||||
|
|||||||
@@ -157,10 +157,7 @@ class ChannelListCoreState extends State<ChannelListCore> {
|
|||||||
presence: widget.presence,
|
presence: widget.presence,
|
||||||
memberLimit: widget.memberLimit,
|
memberLimit: widget.memberLimit,
|
||||||
messageLimit: widget.messageLimit,
|
messageLimit: widget.messageLimit,
|
||||||
paginationParams: PaginationParams(
|
paginationParams: PaginationParams(limit: widget.limit, offset: 0),
|
||||||
limit: widget.limit,
|
|
||||||
offset: 0,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
/// Fetches more channels with updated pagination and updates the widget
|
/// Fetches more channels with updated pagination and updates the widget
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart';
|
|||||||
import 'mocks.dart';
|
import 'mocks.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
const pagination = PaginationParams(limit: 3);
|
const pagination = PaginationParams(limit: 3, offset: 0);
|
||||||
|
|
||||||
List<Channel> _generateChannels(
|
List<Channel> _generateChannels(
|
||||||
StreamChatClient client, {
|
StreamChatClient client, {
|
||||||
@@ -476,7 +476,7 @@ void main() {
|
|||||||
_stateSetter?.call(() => limit = 6);
|
_stateSetter?.call(() => limit = 6);
|
||||||
|
|
||||||
final updatedChannels = _generateChannels(mockClient, count: limit);
|
final updatedChannels = _generateChannels(mockClient, count: limit);
|
||||||
final updatedPagination = PaginationParams(limit: limit);
|
final updatedPagination = PaginationParams(limit: limit, offset: 0);
|
||||||
when(() => mockClient.queryChannels(
|
when(() => mockClient.queryChannels(
|
||||||
filter: any(named: 'filter'),
|
filter: any(named: 'filter'),
|
||||||
sort: any(named: 'sort'),
|
sort: any(named: 'sort'),
|
||||||
|
|||||||
Reference in New Issue
Block a user