Skip to content

Commit d44ed93

Browse files
feat: use bloc_lint on dart/flutter package (#379)
* feat: use bloc_lint on dart/flutter package * fix(flutter_pkg): use flutter to activate bloc_tools * chore: upgrade ci to use flutter 3.32.0 * chore: use flutter 3.35.0 * chore: bump examples and fix lints
1 parent a94cdf5 commit d44ed93

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

.github/workflows/dart_package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ on:
6262
required: false
6363
type: boolean
6464
default: false
65+
run_bloc_lint:
66+
type: boolean
67+
default: true
68+
required: false
6569
secrets:
6670
ssh_key:
6771
required: false
@@ -104,6 +108,12 @@ jobs:
104108
- name: 🕵️ Analyze
105109
run: dart analyze --fatal-infos --fatal-warnings ${{inputs.analyze_directories}}
106110

111+
- name: ✅ Bloc Lint
112+
if: ${{inputs.run_bloc_lint}}
113+
run: |
114+
dart pub global activate bloc_tools
115+
bloc lint .
116+
107117
- name: 🧪 Run Tests
108118
run: |
109119
dart pub global activate coverage 1.2.0

.github/workflows/flutter_package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ on:
5858
required: false
5959
type: string
6060
default: "!*"
61+
run_bloc_lint:
62+
type: boolean
63+
default: true
64+
required: false
6165
secrets:
6266
ssh_key:
6367
required: false
@@ -105,6 +109,12 @@ jobs:
105109
- name: 🕵️ Analyze
106110
run: flutter analyze ${{inputs.analyze_directories}}
107111

112+
- name: ✅ Bloc Lint
113+
if: ${{inputs.run_bloc_lint}}
114+
run: |
115+
flutter pub global activate bloc_tools
116+
bloc lint .
117+
108118
- name: 🧪 Run Tests
109119
run: very_good test -j ${{inputs.concurrency}} ${{(inputs.test_recursion && '--recursive') || ''}} ${{(inputs.test_optimization && '--optimization') || '--no-optimization'}} --coverage --test-randomize-ordering-seed random
110120

examples/flutter_package/pubspec.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
8+
sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.11.0"
11+
version: "2.13.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
16-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
16+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "2.1.1"
19+
version: "2.1.2"
2020
characters:
2121
dependency: transitive
2222
description:
@@ -124,10 +124,10 @@ packages:
124124
dependency: transitive
125125
description:
126126
name: source_span
127-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
127+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
128128
url: "https://pub.dev"
129129
source: hosted
130-
version: "1.10.0"
130+
version: "1.10.1"
131131
stack_trace:
132132
dependency: transitive
133133
description:
@@ -148,18 +148,18 @@ packages:
148148
dependency: transitive
149149
description:
150150
name: string_scanner
151-
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
151+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
152152
url: "https://pub.dev"
153153
source: hosted
154-
version: "1.2.0"
154+
version: "1.4.1"
155155
term_glyph:
156156
dependency: transitive
157157
description:
158158
name: term_glyph
159-
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
159+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
160160
url: "https://pub.dev"
161161
source: hosted
162-
version: "1.2.1"
162+
version: "1.2.2"
163163
test_api:
164164
dependency: transitive
165165
description:

0 commit comments

Comments
 (0)