File tree Expand file tree Collapse file tree 3 files changed +79
-22
lines changed Expand file tree Collapse file tree 3 files changed +79
-22
lines changed Original file line number Diff line number Diff line change
1
+ name : Package Analysis
2
+
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : " Install Tools"
7
+ shell : bash
8
+ run : flutter pub global activate melos
9
+
10
+ - name : " Bootstrap Workspace"
11
+ shell : bash
12
+ run : melos bootstrap --verbose
13
+
14
+ # Only analyze lib/; non-client code doesn't need to work on
15
+ # all supported legacy version.
16
+ - name : " Stream Chat Analyze"
17
+ shell : bash
18
+ run : cd packages/stream_chat/lib && dart analyze --fatal-infos . && cd .. && flutter test --exclude-tags golden
19
+
20
+ - name : " Stream Chat Flutter Core Analyze"
21
+ shell : bash
22
+ run : cd packages/stream_chat_flutter_core/lib && dart analyze --fatal-infos . && cd .. && flutter test --exclude-tags golden
23
+
24
+ - name : " Stream Chat Flutter Analyze"
25
+ shell : bash
26
+ run : cd packages/stream_chat_flutter/lib && dart analyze --fatal-infos . && cd .. && flutter test --exclude-tags golden
27
+
28
+ - name : " Stream Chat Persistence Analyze"
29
+ shell : bash
30
+ run : cd packages/stream_chat_persistence/lib && dart analyze --fatal-infos . && cd .. && flutter test --exclude-tags golden
31
+
32
+ - name : " Stream Chat Localizations Analyze"
33
+ shell : bash
34
+ run : cd packages/stream_chat_localizations/lib && dart analyze --fatal-infos . && cd .. && flutter test --exclude-tags golden
Original file line number Diff line number Diff line change
1
+ name : beta_version_analyze
2
+
3
+ on :
4
+ schedule :
5
+ # Runs "At 02:00 every monday"
6
+ - cron : ' 0 2 * * 1'
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ # Does a sanity check on packages for the next beta version so we are not surprised by any breaking changes.
11
+ analyze_beta_versions :
12
+ timeout-minutes : 15
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : " Git Checkout"
16
+ uses : actions/checkout@v4
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : " Install Flutter"
21
+ uses : subosito/flutter-action@v2
22
+ with :
23
+ channel : beta
24
+ cache : true
25
+ cache-key : flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
26
+
27
+ - name : 📊 Analyze and test packages
28
+ uses : ./.github/actions/package_analysis
29
+
30
+ slack :
31
+ name : Slack Report
32
+ runs-on : ubuntu-latest
33
+ needs : [analyze_beta_versions]
34
+ if : failure() && github.event_name == 'schedule'
35
+ steps :
36
+ - uses : 8398a7/action-slack@v3
37
+ with :
38
+ status : failure
39
+ text : " <@U08BMRSM8G5> The beta build for Flutter Chat failed. Please check the logs."
40
+ job_name : " ${{ github.workflow }}: ${{ github.job }}"
41
+ fields : repo,commit,author,workflow
42
+ env :
43
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_NIGHTLY_CHECKS }}
Original file line number Diff line number Diff line change 47
47
cache : true
48
48
cache-key : flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }}
49
49
50
- - name : " Install Tools"
51
- run : flutter pub global activate melos
52
-
53
- - name : " Bootstrap Workspace"
54
- run : melos bootstrap --verbose
55
-
56
- # Only analyze lib/; non-client code doesn't need to work on
57
- # all supported legacy version.
58
- - name : " Stream Chat Analyze"
59
- run : cd packages/stream_chat/lib && dart analyze --fatal-infos .
60
-
61
- - name : " Stream Chat Flutter Core Analyze"
62
- run : cd packages/stream_chat_flutter_core/lib && dart analyze --fatal-infos .
63
-
64
- - name : " Stream Chat Flutter Analyze"
65
- run : cd packages/stream_chat_flutter/lib && dart analyze --fatal-infos .
66
-
67
- - name : " Stream Chat Persistence Analyze"
68
- run : cd packages/stream_chat_persistence/lib && dart analyze --fatal-infos .
69
-
70
- - name : " Stream Chat Localizations Analyze"
71
- run : cd packages/stream_chat_localizations/lib && dart analyze --fatal-infos .
50
+ - name : 📊 Analyze and test packages
51
+ uses : ./.github/actions/package_analysis
You can’t perform that action at this time.
0 commit comments