Merge pull request #482 from GetStream/fix/main-action-script
fix: stream_flutter_workflow.yml
This commit is contained in:
@@ -26,7 +26,6 @@ jobs:
|
|||||||
- name: "Install Tools"
|
- name: "Install Tools"
|
||||||
run: |
|
run: |
|
||||||
flutter pub global activate melos
|
flutter pub global activate melos
|
||||||
flutter pub global activate tuneup
|
|
||||||
- name: "Bootstrap Workspace"
|
- name: "Bootstrap Workspace"
|
||||||
run: melos bootstrap
|
run: melos bootstrap
|
||||||
- name: "Dart Analyze"
|
- name: "Dart Analyze"
|
||||||
@@ -78,7 +77,7 @@ jobs:
|
|||||||
- name: "Flutter Test"
|
- name: "Flutter Test"
|
||||||
run: melos run test:all
|
run: melos run test:all
|
||||||
- name: "Collect Coverage"
|
- name: "Collect Coverage"
|
||||||
run: melos run coverage:ignore-file
|
run: melos run coverage:ignore-file --no-select
|
||||||
- name: "Upload Coverage"
|
- name: "Upload Coverage"
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
with:
|
with:
|
||||||
@@ -103,4 +102,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: 35
|
min_coverage: 35
|
||||||
@@ -1,12 +1,10 @@
|
|||||||
analyzer:
|
analyzer:
|
||||||
enable-experiment:
|
|
||||||
- extension-methods
|
|
||||||
exclude:
|
exclude:
|
||||||
- lib/**/*.g.dart
|
- packages/*/lib/**/*.g.dart
|
||||||
- example/**
|
- packages/*/example/**
|
||||||
- lib/src/emoji
|
- packages/*/lib/src/emoji
|
||||||
- lib/**/*.freezed.dart
|
- packages/*/lib/**/*.freezed.dart
|
||||||
- test/**
|
- packages/*/test/**
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
rules:
|
rules:
|
||||||
@@ -147,4 +145,4 @@ linter:
|
|||||||
- cast_nullable_to_non_nullable
|
- cast_nullable_to_non_nullable
|
||||||
- unnecessary_null_checks
|
- unnecessary_null_checks
|
||||||
- tighten_type_of_initializing_formals
|
- tighten_type_of_initializing_formals
|
||||||
- null_check_on_nullable_type_parameter
|
- null_check_on_nullable_type_parameter
|
||||||
+4
-2
@@ -64,9 +64,11 @@ scripts:
|
|||||||
|
|
||||||
coverage:ignore-file:
|
coverage:ignore-file:
|
||||||
run: |
|
run: |
|
||||||
melos exec -c 4 --fail-fast -- "\$MELOS_ROOT_PATH/.github/workflows/scripts/remove-from_coverage.sh"
|
melos exec -c 4 --fail-fast -- "\$MELOS_ROOT_PATH/.github/workflows/scripts/remove-from-coverage.sh"
|
||||||
description: Removes all the ignored files from the coverage report.
|
description: Removes all the ignored files from the coverage report.
|
||||||
|
select-package:
|
||||||
|
dir-exists: coverage
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
flutter: '>=1.22.4 <2.0.0'
|
flutter: '>=1.22.4 <2.0.0'
|
||||||
Reference in New Issue
Block a user