Skip to content

refactor(ci): use diff to only run commands for changes #2107

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

Closed
wants to merge 219 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
99378c2
Improve repo structure (#22)
Nash0x7E2 Mar 10, 2021
76a893e
update sample app
imtoori Mar 11, 2021
d82f8ed
update fastfile
imtoori Mar 12, 2021
4f19a35
fix action
imtoori Mar 15, 2021
846769d
Feat/testflight (#24)
imtoori Mar 15, 2021
0627bf4
fix advanced options
imtoori Mar 15, 2021
0fd7c2d
fix error capitalization
imtoori Mar 15, 2021
01e547d
fix cancel button
imtoori Mar 15, 2021
efae0ca
restore action location
imtoori Mar 15, 2021
5bd1db2
Merge branch 'main' into develop
imtoori Mar 16, 2021
ea46213
update dependencies
imtoori Mar 16, 2021
59366aa
fix ios build
imtoori Mar 16, 2021
c134ec7
update dependencies
imtoori Mar 16, 2021
8cc7273
move file and media screens to sample app
imtoori Mar 29, 2021
3a3259d
move app config to separate file and use a production version on mast…
imtoori Mar 30, 2021
dc7fbb6
update files
imtoori Mar 30, 2021
7544058
fix build
imtoori Mar 30, 2021
418889e
Merge pull request #28 from GetStream/feature/productionConfig
imtoori Mar 30, 2021
5e454be
bump version
imtoori Mar 30, 2021
9b16040
update action
imtoori Mar 30, 2021
479bd20
update fastlane
imtoori Mar 30, 2021
c2bc762
update fastlane
imtoori Mar 30, 2021
4b8e8e2
bump version
imtoori Apr 6, 2021
c5c9950
Merge branch 'develop' into main
imtoori Apr 7, 2021
cc09b57
add channel file and media display screens
imtoori Apr 8, 2021
ffb0724
update fastlane configs
imtoori May 3, 2021
fe91b20
fix build
imtoori May 3, 2021
4636c6f
upgrade dependencies
imtoori May 12, 2021
d7a018b
migrate sample app
imtoori May 12, 2021
c5737ef
removed deprecated uses, fmt
d3xvn May 17, 2021
371ea32
fix new chat filter
imtoori May 17, 2021
04afa39
fix mentions filter
imtoori May 17, 2021
9daf259
Merge pull request #31 from GetStream/nnbd-migration
imtoori May 17, 2021
e89965d
add modal before removing member and remove make owner (not yet in ba…
imtoori May 20, 2021
6271b42
fix modal adding safearea
imtoori May 20, 2021
7dcb324
feat: Added pinned message screen. TODO: Add new logo
d3xvn May 28, 2021
99160d0
rfac: remove asset package
d3xvn May 28, 2021
c1ad6eb
fix: changed pin logo
d3xvn Jun 11, 2021
efca2a7
fix: changed pin logo
d3xvn Jun 11, 2021
7b5c7cf
fix: icon sizes
d3xvn Jun 11, 2021
b55d8f8
fix: Added pin permissions
d3xvn Jun 11, 2021
acd1eb5
Merge pull request #35 from GetStream/feat/pinned
imtoori Jun 11, 2021
b91270d
Update pubspec.yaml
imtoori Jun 11, 2021
c9887e0
add web build with production config to nightly
imtoori Jun 18, 2021
a4855de
build canvas kit
imtoori Jun 18, 2021
138f5b7
try different action
imtoori Jun 18, 2021
bd14ebe
align with main repo
imtoori Jun 21, 2021
704fa84
extract main.dart widgets
imtoori Jun 21, 2021
a968d63
refactor home page
imtoori Jun 22, 2021
a779283
restore dependencies
imtoori Jun 22, 2021
754c611
Merge pull request #39 from GetStream/ref/segregate-api-layer
imtoori Jun 22, 2021
20e6984
fix android build
imtoori Jun 23, 2021
c454759
fix modals using nearest navigator
imtoori Jun 29, 2021
8544a00
bump version
imtoori Jun 29, 2021
ead166f
fix physical button navigation on android
imtoori Jun 29, 2021
c4193c9
fix homepage
imtoori Jul 1, 2021
1f70d3e
update color names with develop ones
imtoori Jul 1, 2021
d9cbb24
Merge pull request #41 from GetStream/feat/colorNames
imtoori Jul 6, 2021
4b6bcc9
update fastlane
imtoori Jul 6, 2021
a7db494
update fastlane
imtoori Jul 6, 2021
a1aac27
update fastlane
imtoori Jul 6, 2021
dae763a
align with latest stable
imtoori Jul 19, 2021
e8a97cf
Merge branch 'main' into develop
imtoori Jul 19, 2021
2d1bc74
Merge pull request #42 from GetStream/develop
imtoori Jul 19, 2021
52a8d62
update pubspec
imtoori Jul 19, 2021
d7dd9c9
fix android build
imtoori Jul 19, 2021
08c17ca
use persistence storage
imtoori Jul 20, 2021
c360aa7
added filters to MessageListView
d3xvn Jul 28, 2021
c471584
Merge branch 'develop' of https://github.com/GetStream/flutter-sample…
d3xvn Jul 28, 2021
8f249b5
fixed deps
d3xvn Jul 28, 2021
35a54c4
fixed deps
d3xvn Jul 28, 2021
608bd80
added visible footnote
d3xvn Jul 28, 2021
1f5c7e0
added const
d3xvn Jul 28, 2021
65a44cf
Merge pull request #44 from GetStream/new-filter
imtoori Jul 28, 2021
994c429
fixed deprecation issues
sonykurian96 Jul 28, 2021
00cbd87
Merge pull request #45 from sonykurian96/fixed_deprecated_code
imtoori Jul 28, 2021
1fb0fbd
Merge branch 'main' into develop
imtoori Jul 29, 2021
bf001a0
fix user avatar constraints
imtoori Aug 18, 2021
593d3eb
Add adaptive icons for Android and update app name
zsmb13 Aug 18, 2021
0f7b1b6
Merge pull request #46 from zsmb13/adaptive-icons
imtoori Aug 20, 2021
0f8605e
feat: add localizations
HayesGordon Aug 23, 2021
c25591b
feat(localization): added italian strings
imtoori Aug 24, 2021
8fa53f5
update deps
imtoori Aug 24, 2021
2737604
Merge pull request #48 from GetStream/feat/add-localization-cherry-pick
imtoori Aug 24, 2021
4ec5c0e
chore(stream_chat_v1): update dependencies
imtoori Aug 26, 2021
4f48799
feat(stream_chat_v1): implement foreground notifications
imtoori Aug 30, 2021
2d530c9
use notification.message_new event
imtoori Aug 30, 2021
31c1726
add user check
imtoori Aug 30, 2021
8be3c1f
feat(stream_chat_v1): open channel on foreground notification press
imtoori Sep 1, 2021
19430a9
Merge pull request #50 from GetStream/feat/foregroundNotifications
imtoori Sep 2, 2021
50a3c51
chore: update fastlane
imtoori Sep 6, 2021
e70290a
chore: update fastlane
imtoori Sep 6, 2021
7a2e49d
chore: update fastlane
imtoori Sep 6, 2021
a767f97
chore: update fastlane
imtoori Sep 6, 2021
fde630f
chore: update fastlane
imtoori Sep 6, 2021
91374d7
chore: update fastlane
imtoori Sep 6, 2021
f47a4aa
chore: update fastlane
imtoori Sep 6, 2021
5fa61d5
chore: migrate to latest dependencies
xsahil03x Oct 5, 2021
f577923
Merge branch 'develop'
imtoori Oct 6, 2021
04c4df9
bump version
imtoori Oct 6, 2021
d9e997f
update ios
imtoori Oct 6, 2021
3d3cc26
merge develop
imtoori Oct 6, 2021
7519495
chore: update dependencies and fix lint warnings
HayesGordon Oct 6, 2021
bda9fab
fix ios build for ios 15
imtoori Oct 7, 2021
081680a
fix ios build for ios 15
imtoori Oct 7, 2021
b8cf594
update profiles;
imtoori Oct 7, 2021
a9e27d3
update profiles
imtoori Oct 7, 2021
95d8e24
update fastfile
imtoori Oct 8, 2021
3a9f8ba
update fastfile
imtoori Oct 8, 2021
0df5bbf
update fastfile to work with xcode 13
imtoori Oct 8, 2021
8580153
update fastfile to work with xcode 13
imtoori Oct 8, 2021
fc69b62
update fastfile to work with xcode 13
imtoori Oct 8, 2021
56dac48
update mcaos image
imtoori Oct 8, 2021
a719d80
Merge branch 'develop' into chore/update-samples
HayesGordon Oct 11, 2021
2e38c82
Merge pull request #53 from GetStream/chore/update-samples
imtoori Oct 12, 2021
8746107
fix build
imtoori Oct 18, 2021
4d1801f
fix: add message search thread navigation support
xsahil03x Oct 20, 2021
df04fdb
Merge pull request #54 from GetStream/fix/message-search-thread-navig…
imtoori Oct 20, 2021
f078885
update deps
imtoori Nov 2, 2021
7ba0b8f
fix: channel list performance
HayesGordon Dec 7, 2021
0ca9544
chore: move message search bloc
HayesGordon Dec 8, 2021
621351a
Merge pull request #60 from GetStream/fix/channel-list-scroll-perform…
imtoori Dec 9, 2021
a9d5cb2
added mip changes, capabilities changes
d3xvn Jan 6, 2022
d007660
fix(sample): fix various bugs.
xsahil03x Jan 19, 2022
5ad9103
remove role check
imtoori Jan 25, 2022
5e44a38
Merge pull request #63 from GetStream/capabilities
imtoori Jan 27, 2022
b4ff51c
Merge pull request #64 from GetStream/fix-bugs
imtoori Jan 27, 2022
b021f74
update deps
imtoori Feb 3, 2022
2660a09
update android compile sdk
imtoori Feb 3, 2022
82c738a
feat(sample-app): Migrate sample app to v4
xsahil03x Mar 21, 2022
1ee7e0f
update deps
imtoori Mar 22, 2022
7b457a2
Migrated most of the code from deprecated widgets to v4 widgets, and …
Apr 13, 2022
6beaea3
Merge branch 'release/4.0' into migrate/deprecated_code_full_screen
imtoori Apr 13, 2022
0cdd1ee
Merge pull request #71 from ayush221b/migrate/deprecated_code_full_sc…
imtoori Apr 13, 2022
d0b1154
bump version
imtoori Apr 20, 2022
885205c
feat(sample-app): add sentry
xsahil03x Apr 22, 2022
87722da
chore(sample-app): revert stream-chat dependency to git
xsahil03x Apr 22, 2022
6152d54
Merge pull request #73 from GetStream/feat/sentry
imtoori Apr 22, 2022
0a43010
update lists
imtoori Apr 28, 2022
02fe35c
update lists
imtoori Apr 28, 2022
2f95ff4
align with v4
imtoori Apr 29, 2022
7780d3b
fix analysis
imtoori Apr 29, 2022
eb08076
Merge branch 'develop' into release/4.0
imtoori May 3, 2022
378551a
Merge pull request #74 from GetStream/release/4.0
imtoori May 3, 2022
e5acb6d
bump version
imtoori May 3, 2022
2fd8ffa
profile
imtoori May 3, 2022
4614c08
profile
imtoori May 3, 2022
f579ff9
profile
imtoori May 3, 2022
17504df
profiles
imtoori May 3, 2022
11e6230
fix deps
imtoori May 3, 2022
45b27c4
fix android with flutter 3.0
imtoori May 17, 2022
54424a2
update to flutter 3.0
imtoori May 18, 2022
7721cc3
bump version
imtoori May 18, 2022
163f5f2
bump version
imtoori May 20, 2022
126d76e
feat: update to v5
HayesGordon Sep 22, 2022
3b66784
chore: update branch
HayesGordon Oct 5, 2022
8d0a845
Merge pull request #84 from GetStream/v5-migrate
imtoori Oct 6, 2022
c5fbeef
style: provide folder structure
HayesGordon Oct 6, 2022
c68af6a
Merge pull request #86 from GetStream/style/folder-structure
imtoori Oct 6, 2022
898153c
chore: update package lints and apply fixes
HayesGordon Oct 6, 2022
69378f1
Merge pull request #87 from GetStream/chore/update-package-lints
imtoori Oct 6, 2022
bd405e7
chore: prefer final and lazy init
HayesGordon Oct 7, 2022
1fcfa6c
Merge pull request #88 from GetStream/chore/cleanup
imtoori Oct 7, 2022
158719c
perf: improve splash animation
HayesGordon Oct 10, 2022
cee5874
chore: start method with call to initState super
HayesGordon Oct 10, 2022
d756666
Merge pull request #89 from GetStream/perf/improve-splash-animation
imtoori Oct 10, 2022
201470f
refactor: use gorouter for navigation
HayesGordon Oct 17, 2022
f7b89f3
Merge pull request #90 from GetStream/refactor/use-gorouter-for-navig…
imtoori Oct 26, 2022
31e3874
Updating dependencies
leandroBorgesFerreira Jan 27, 2023
86c2327
Merge pull request #91 from GetStream/Updating-dependencies
leandroBorgesFerreira Jan 27, 2023
badfbbc
chore(sample-app): update to latest develop branch.
xsahil03x Apr 6, 2023
b542be6
chore(sample-app): update version
xsahil03x Apr 6, 2023
6828989
chore(sample-app): update app icons, lottie and android project.
xsahil03x Apr 7, 2023
477a1f2
chore(sample-app): update deploymeny target on macos
xsahil03x Apr 7, 2023
6c63ad0
chore(sample-app): update workflow and fix flutter web for deployment
xsahil03x Apr 7, 2023
5bae628
chore(sample-app): add ruby version
xsahil03x Apr 7, 2023
738971f
chore(sample-app): fix flutter web deployment.
xsahil03x Apr 7, 2023
726ecd0
init firebase
May 5, 2023
071ba74
implement PN support on iOS & Android
May 9, 2023
aadfc3c
[94] chore: remove excessive logs
May 10, 2023
20b9b4a
[94] chore: remove excessive logs
May 10, 2023
5b0f586
[94] chore: undo yaml
May 10, 2023
758788b
[94] add missing dependency
May 11, 2023
879249a
[94] add comments
May 11, 2023
af00a67
[94] support BG on iOS
May 18, 2023
c97bfe8
[94] fix builds after migrating to Flutter 3.10.1
May 18, 2023
807cd7f
chore: bump and migrate deps.
xsahil03x Jun 19, 2023
3a557cb
Merge pull request #93 from GetStream/latest-changes
xsahil03x Jun 21, 2023
f9d4196
Merge remote-tracking branch 'origin/develop' into firebase
xsahil03x Jun 21, 2023
d62ea75
chore: bump firebase and migrate code.
xsahil03x Jun 21, 2023
d83ac5d
fix: fix deletedBottomRowBuilder.
xsahil03x Jun 21, 2023
20d9323
fix: fix zone assertion error.
xsahil03x Jun 21, 2023
26bad06
Merge pull request #96 from GetStream/firebase
xsahil03x Jun 21, 2023
cafc488
fix: add pubspec.lock back for StreamVersion.
xsahil03x Jun 21, 2023
c8c240b
feat: add pubspec_overrides.yaml
xsahil03x Jun 21, 2023
64a78be
chore: update sample app.
xsahil03x Aug 16, 2023
486c7af
Merge pull request #97 from GetStream/chore/update-project
xsahil03x Aug 16, 2023
d923de6
chore: update sample app.
xsahil03x Aug 22, 2023
8fe0abb
Merge pull request #98 from GetStream/chore/update-project
xsahil03x Aug 22, 2023
47235c1
Updates stream chat for the project and brings it up to date
d3xvn Aug 20, 2024
98eb473
Merge pull request #100 from GetStream/fix/update-sample
d3xvn Aug 28, 2024
54526a6
chore: update sample app
xsahil03x Jan 13, 2025
41fdc58
Merge pull request #103 from GetStream/fix/update-sample-app
xsahil03x Jan 13, 2025
cff2ff2
fix: web build
xsahil03x Jan 13, 2025
4925e7f
Merge pull request #104 from GetStream/fix/web-build
xsahil03x Jan 13, 2025
d183efc
fix: pin chewie to 1.8.5
xsahil03x Jan 13, 2025
1fd86af
Merge branch 'develop' into fix/chewie
xsahil03x Jan 13, 2025
4f2f6d4
Merge pull request #105 from GetStream/fix/chewie
xsahil03x Jan 13, 2025
688bf48
[CHA-546] set up ios with local environment
kanat Jan 24, 2025
231751e
Merge pull request #106 from GetStream/push/local-setup
kanat Jan 25, 2025
110c8b7
Merge remote-tracking branch 'source-repo/develop'
xsahil03x Feb 11, 2025
11a4f84
refactor: rename `stream_chat_v1` -> `sample_app`
xsahil03x Feb 12, 2025
83d8fbf
chore: fix lints and update project
xsahil03x Feb 12, 2025
a27a492
chore: move deps to shared dependencies
xsahil03x Feb 12, 2025
088b2de
chore: update README.md
xsahil03x Feb 12, 2025
2f02e9a
chore: format sample app
xsahil03x Feb 12, 2025
56e442e
refactor: use diff to only run commands for changes
xsahil03x Feb 12, 2025
72ffc27
fix: fix command name
xsahil03x Feb 12, 2025
b79a9b2
Merge branch 'master' into refactor/ci-workflows
xsahil03x Feb 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 11 additions & 29 deletions .github/workflows/legacy_version_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,9 @@ on:
push:
branches:
- master
paths:
- 'packages/**'
- '.github/workflows/legacy_version_analyze.yml'
pull_request:
branches:
- master
paths:
- 'packages/**'
- '.github/workflows/legacy_version_analyze.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -34,38 +28,26 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Git Checkout"
- name: 📚 Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "Install Flutter"
- name: 🎯 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true
channel: stable
flutter-version: ${{ env.flutter_version }}
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}

- name: "Install Tools"
- name: 📦 Install Tools
run: flutter pub global activate melos

- name: "Bootstrap Workspace"
run: melos bootstrap --verbose

# Only analyze lib/; non-client code doesn't need to work on
# all supported legacy version.
- name: "Stream Chat Analyze"
run: cd packages/stream_chat/lib && dart analyze --fatal-infos .

- name: "Stream Chat Flutter Core Analyze"
run: cd packages/stream_chat_flutter_core/lib && dart analyze --fatal-infos .

- name: "Stream Chat Flutter Analyze"
run: cd packages/stream_chat_flutter/lib && dart analyze --fatal-infos .

- name: "Stream Chat Persistence Analyze"
run: cd packages/stream_chat_persistence/lib && dart analyze --fatal-infos .
- name: ⚙️ Bootstrap Workspace
run: melos bootstrap

- name: "Stream Chat Localizations Analyze"
run: cd packages/stream_chat_localizations/lib && dart analyze --fatal-infos .
- name: 🕵️ Analyze
# Only analyze lib/; non-client code doesn't need to work on
# all supported legacy version.
run: melos exec -c 1 --diff=origin/master...HEAD --include-dependents -- "dart analyze lib --fatal-infos"
1 change: 1 addition & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
doc
repo
localization
sample_app
requireScope: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
131 changes: 52 additions & 79 deletions .github/workflows/stream_flutter_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: stream_flutter_workflow

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
# Note: The versions below should be manually updated after a new major
# version comes out.
flutter_version: "3.x"

on:
pull_request:
paths:
- 'packages/**'
- '.github/workflows/stream_flutter_workflow.yml'
types:
- opened
- reopened
Expand All @@ -23,127 +21,102 @@ concurrency:
cancel-in-progress: true

jobs:
analyze:
timeout-minutes: 15
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: "Git Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Install Flutter"
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: "Install Tools"
run: |
flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap --verbose
- name: "Dart Analyze"
run: |
melos run analyze
- name: "Pub Check"
if: github.base_ref == 'master'
run: |
melos run lint:pub

format:
lint:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
timeout-minutes: 15
steps:
- name: "Git Checkout"
- name: 📚 Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Install Flutter"

- name: 🎯 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true
channel: stable
flutter-version: ${{ env.flutter_version }}
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
- name: "Install Tools"
run: |
flutter pub global activate melos
- name: "Bootstrap Workspace"

- name: 📦 Install Tools
run: flutter pub global activate melos

- name: ⚙️ Bootstrap Workspace
run: melos bootstrap
- name: "Melos Format"
run: melos run format
- name: "Validate Formatting"
run: |
./.github/workflows/scripts/validate-formatting.sh

- name: ✨ Check Formatting
run: melos run format:changes

- name: 🕵️ Analyze
run: melos run analyze:changes

- if: github.base_ref == 'master'
name: 🚀 Pub Check
run: melos run publish:dry-run:changes

test:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
timeout-minutes: 30
steps:
- name: "Git Checkout"
- name: 📚 Git Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Install Flutter"

- name: 🎯 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.flutter_version }}
channel: stable
cache: true
channel: stable
flutter-version: ${{ env.flutter_version }}
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
# This step is needed due to https://github.com/actions/runner-images/issues/11279
- name: Install SQLite3
run: sudo apt-get update && sudo apt-get install -y sqlite3 libsqlite3-dev
- name: "Install Tools"

- name: 📦 Install Tools
run: |
flutter pub global activate melos
flutter pub global activate remove_from_coverage
- name: "Bootstrap Workspace"

- name: ⚙️ Bootstrap Workspace
run: melos bootstrap
- name: "Flutter Test"
run: melos run test:all
- name: "Collect Coverage"

- name: 🧪 Run Tests
run: melos run test:changes

- name: 📊 Collect Coverage
run: melos run coverage:ignore-file --no-select
- name: "Upload Coverage"
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
files: packages/*/coverage/lcov.info
- name: "Stream Chat Coverage Check"

- name: ✅ Stream Chat Coverage Check
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
path: packages/stream_chat/coverage/lcov.info
min_coverage: 70
- name: "Stream Chat Localizations Coverage Check"

- name: ✅ Stream Chat Localizations Coverage Check
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
path: packages/stream_chat_localizations/coverage/lcov.info
min_coverage: 100
- name: "Stream Chat Persistence Coverage Check"

- name: ✅ Stream Chat Persistence Coverage Check
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
path: packages/stream_chat_persistence/coverage/lcov.info
min_coverage: 95
- name: "Stream Chat Flutter Core Coverage Check"

- name: ✅ Stream Chat Flutter Core Coverage Check
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
path: packages/stream_chat_flutter_core/coverage/lcov.info
min_coverage: 30
- name: "Stream Chat Flutter Coverage Check"

- name: ✅ Stream Chat Flutter Coverage Check
uses: VeryGoodOpenSource/very_good_coverage@v3.0.0
with:
path: packages/stream_chat_flutter/coverage/lcov.info
min_coverage: 44

draft-build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == true
timeout-minutes: 1

steps:
- name: Run a one-line script
run: echo Draft PR, you are good.
- name: 📁 Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{secrets.CODECOV_TOKEN}}
files: packages/*/coverage/lcov.info
50 changes: 23 additions & 27 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,38 +117,31 @@ scripts:
run: melos run analyze && melos run format
description: Run all static analysis checks

analyze:all:
run: melos run analyze && melos run metrics
description: Run all

analyze:
run: |
melos exec -c 5 --ignore="*example*" -- \
dart analyze --fatal-infos .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
run: melos exec -c 5 --ignore="*example*" -- "dart analyze --fatal-infos ."
description: Run `dart analyze` in all packages.

analyze:changes:
run: melos exec -c 1 --diff=origin/master...HEAD --include-dependents -- "dart analyze --fatal-infos ."
description: Run `dart analyze` in all changed packages.

format:
run: dart format --set-exit-if-changed .
description: |
Run `dart format --set-exit-if-changed .` in all packages.
description: Run `dart format --set-exit-if-changed .` in all packages.

metrics:
run: |
melos exec -c 1 --ignore="*example*" -- \
flutter pub run dart_code_metrics:metrics analyze lib
description: |
Run `dart_code_metrics` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
format:changes:
run: melos exec -c 1 --diff=origin/master...HEAD --include-dependents -- "dart format --set-exit-if-changed ."
description: Run `dart format` in all changed packages.

lint:pub:
run: |
melos exec -c 5 --no-private --ignore="*example*" -- \
flutter pub publish --dry-run
description: |
Run `pub publish --dry-run` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
run: melos exec -c 5 --no-private --ignore="*example*" -- "flutter pub publish --dry-run"
description: Run `pub publish --dry-run` in all packages.

publish:dry-run:changes:
run: >-
melos exec -c 1 --diff=origin/master...HEAD --no-private --include-dependents --
"[ -f pubspec.yaml ] && ! grep -q 'publish_to: none' pubspec.yaml && flutter pub publish --dry-run || echo 'Package not publishable, skipping'"
description: Run `flutter pub publish --dry-run` in all changed packages.

generate:all:
run: melos run generate:dart && melos run generate:flutter
Expand Down Expand Up @@ -180,6 +173,10 @@ scripts:
flutter: true
dirExists: test

test:changes:
run: melos exec -c 1 --diff=origin/master...HEAD --include-dependents -- "[ -d test ] && flutter test --no-pub --coverage || echo 'No tests found, skipping'"
description: Run `flutter test` in all changed packages.

update:goldens:
run: melos exec -c 1 --depends-on="alchemist" -- "flutter test --tags golden --update-goldens"
description: Update golden files for all packages in this project.
Expand All @@ -191,8 +188,7 @@ scripts:
flutter: true

coverage:ignore-file:
run: |
melos exec -c 5 --fail-fast -- "\$MELOS_ROOT_PATH/.github/workflows/scripts/remove-from-coverage.sh"
run: melos exec -c 1 --fail-fast -- "\$MELOS_ROOT_PATH/.github/workflows/scripts/remove-from-coverage.sh"
description: Removes all the ignored files from the coverage report.
packageFilters:
dirExists: coverage
2 changes: 1 addition & 1 deletion packages/stream_chat/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: stream_chat_example
description: A new Flutter project.

publish_to: "none"
publish_to: none
version: 1.0.0+1

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_flutter/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stream_chat_flutter_example
description: A new Flutter project.
publish_to: 'none'
publish_to: none
version: 1.0.0+1

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_flutter_core/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stream_chat_flutter_core_example
description: Example app for testing stream_chat_flutter_core
publish_to: 'none'
publish_to: none
version: 1.0.0+1

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_localizations/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: stream_chat_localizations_example
description: A new Flutter project.

publish_to: 'none'
publish_to: none
version: 1.0.0+1

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat_persistence/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: stream_chat_persistence_example
description: A new Flutter project.
publish_to: 'none'
publish_to: none
version: 1.0.0+1

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
2 changes: 1 addition & 1 deletion sample_app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: sample_app
description: A new Flutter project.
publish_to: "none"
publish_to: none
version: 2.2.0

# Note: The environment configuration and dependency versions are managed by Melos.
Expand Down
Loading