Skip to content

Commit d29f3f2

Browse files
committed
ci: fix pipelines
1 parent 964d222 commit d29f3f2

File tree

6 files changed

+19
-142
lines changed

6 files changed

+19
-142
lines changed
Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,38 @@
1-
name: netglade_analysis test
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7-
tags-ignore:
8-
- 'netglade_analysis-v*'
9-
paths:
10-
- 'packages/netglade_analysis/**'
117
pull_request:
12-
branches:
13-
- main
14-
paths:
15-
- 'packages/netglade_analysis/**'
8+
workflow_dispatch:
169

1710
jobs:
1811
test:
1912
runs-on: ubuntu-latest
2013
strategy:
2114
fail-fast: false
22-
defaults:
23-
run:
24-
working-directory: packages/netglade_analysis
2515

2616
steps:
2717
- uses: actions/checkout@v4
28-
- uses: dart-lang/setup-dart@v1
18+
19+
- name: Configure FVM
20+
uses: kuhnroyal/flutter-fvm-config-action@v2
21+
id: fvm-config-action
22+
- name: Setup Flutter and Dart
23+
uses: subosito/flutter-action@v2
2924
with:
30-
sdk: 3.5.0
25+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
26+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
3127

32-
- name: Install Dependencies
33-
run: dart pub get
28+
- name: Setup Melos
29+
uses: bluefireteam/melos-action@v2
3430

3531
- name: Format
3632
run: dart format --line-length 120 --set-exit-if-changed .
3733

38-
- name: Analyze
39-
run: dart analyze .
34+
- name: Dart Analyze
35+
run: melos run lint:dart
4036

4137
- name: Install DCM
4238
uses: CQLabs/setup-dcm@v1
@@ -55,5 +51,5 @@ jobs:
5551
fatal_performance: true
5652
fatal_warnings: true
5753

58-
- name: Dry Publish
59-
run: dart pub publish --dry-run
54+
- name: Dry Publish Packages
55+
run: melos publish --dry-run

.github/workflows/netglade_flutter_utils-test.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/netglade_utils-test.yaml

Lines changed: 0 additions & 59 deletions
This file was deleted.

packages/netglade_flutter_utils/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dev_dependencies:
1919
flutter_test:
2020
sdk: flutter
2121
mocktail: ^1.0.0
22-
netglade_analysis: ^10.0.0
22+
netglade_analysis: ^12.0.0
2323
test: ^1.24.6
2424

2525
flutter:

packages/netglade_utils/lib/src/extensions/future_extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ typedef OnTakingTooLongCallback = void Function();
77
extension FutureExtensions<T> on Future<T> {
88
static const standardProlongTimeMs = 300;
99

10-
/// If [this] future taking longer than [duration] to execute - [callback] is called.
10+
/// If `this` future taking longer than [duration] to execute - [callback] is called.
1111
Future<T> onTakingTooLong(
1212
Duration duration,
1313
OnTakingTooLongCallback callback,

packages/netglade_utils/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies:
1717
mocktail: ^1.0.0
1818

1919
dev_dependencies:
20-
netglade_analysis: ^10.0.0
20+
netglade_analysis: ^12.0.0
2121
test: ^1.24.6

0 commit comments

Comments
 (0)