Skip to content

Commit 6602ed5

Browse files
chore: Update Dart to 3.0.0 (#20)
* chore: pump dart to 3.2.0 * ci: update flutter to 3.16.0 * chore: add trailing commas * ci: update workflows * ci: update workflow name * ci: use flutter package workflow * ci: use flutter package workflow * ci: used under score for flutter_version input * ci: update flutter version inputs * chore: use min 3.0.0 --------- Co-authored-by: Alejandro Santiago <[email protected]>
1 parent b085fe7 commit 6602ed5

File tree

8 files changed

+156
-108
lines changed

8 files changed

+156
-108
lines changed

.github/workflows/main.yaml

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

.github/workflows/pana_score.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pana_score
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
pana_score:
17+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: semantic_pull_request
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
semantic-pull-request:
17+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1

.github/workflows/spell_check.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: spell_check
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
spell-check:
17+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1
18+
with:
19+
includes: "**/*.md"
20+
modified_files_only: false
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: very_good_test_runner
2+
concurrency:
3+
group: ${{ github.workflow }}-${{ github.ref }}
4+
cancel-in-progress: true
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
jobs:
15+
build:
16+
strategy:
17+
matrix:
18+
flutter_version:
19+
- "3.10.0" # The Flutter version with a Dart SDK that matches the minimum Dart SDK version supported by the package.
20+
- "" # The latest stable version of Flutter.
21+
22+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1
23+
with:
24+
flutter_version: ${{ matrix.flutter_version }}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ homepage: https://github.com/VeryGoodOpenSource/very_good_test_runner
44
version: 0.1.2
55

66
environment:
7-
sdk: ">=2.18.0 <3.0.0"
7+
sdk: ">=3.0.0 <4.0.0"
88

99
dependencies:
1010
json_annotation: ^4.4.0
@@ -16,4 +16,4 @@ dev_dependencies:
1616
json_serializable: ^6.0.0
1717
mocktail: ">=0.3.0 <2.0.0"
1818
test: ^1.19.2
19-
very_good_analysis: ^4.0.0
19+
very_good_analysis: ^5.1.0

test/src/models/test_event_test.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void main() {
2323
'runnerVersion': '1.19.5',
2424
'pid': 67090,
2525
'type': 'start',
26-
'time': 0
26+
'time': 0,
2727
};
2828
expect(TestEvent.fromJson(json), isA<StartTestEvent>());
2929
});
@@ -33,10 +33,10 @@ void main() {
3333
'suite': {
3434
'id': 0,
3535
'platform': 'vm',
36-
'path': '/example/test/app/view/app_test.dart'
36+
'path': '/example/test/app/view/app_test.dart',
3737
},
3838
'type': 'suite',
39-
'time': 0
39+
'time': 0,
4040
};
4141
expect(TestEvent.fromJson(json), isA<SuiteTestEvent>());
4242
});
@@ -52,10 +52,10 @@ void main() {
5252
'testCount': 1,
5353
'line': null,
5454
'column': null,
55-
'url': null
55+
'url': null,
5656
},
5757
'type': 'group',
58-
'time': 2599
58+
'time': 2599,
5959
};
6060

6161
expect(TestEvent.fromJson(json), isA<GroupTestEvent>());
@@ -71,10 +71,10 @@ void main() {
7171
'metadata': {'skip': false, 'skipReason': null},
7272
'line': null,
7373
'column': null,
74-
'url': null
74+
'url': null,
7575
},
7676
'type': 'testStart',
77-
'time': 1
77+
'time': 1,
7878
};
7979

8080
expect(TestEvent.fromJson(json), isA<TestStartEvent>());
@@ -94,7 +94,7 @@ void main() {
9494
'stackTrace': '',
9595
'isFailure': false,
9696
'type': 'error',
97-
'time': 3288
97+
'time': 3288,
9898
};
9999

100100
expect(TestEvent.fromJson(json), isA<ErrorTestEvent>());
@@ -107,7 +107,7 @@ void main() {
107107
'message':
108108
'''══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════\nThe following TestFailure was thrown running a test:\nExpected: no matching nodes in the widget tree\n Actual: _WidgetTypeFinder:<exactly one widget with type 'CounterPage' (ignoring offstage widgets):\nCounterPage>\n Which: means one was found but none were expected\n\nWhen the exception was thrown, this was the stack:\n#4 main.<anonymous closure>.<anonymous closure> (file:///example/test/app/view/app_test.dart:16:7)\n<asynchronous suspension>\n<asynchronous suspension>\n(elided one frame from package:stack_trace)\n\nThis was caught by the test expectation on the following line:\n file:///example/test/app/view/app_test.dart line 16\nThe test description was:\n renders CounterPage\n════════════════════════════════════════════════════════════════════════════════════════════════════''',
109109
'type': 'print',
110-
'time': 3284
110+
'time': 3284,
111111
};
112112

113113
expect(TestEvent.fromJson(json), isA<MessageTestEvent>());
@@ -119,7 +119,7 @@ void main() {
119119
'type': 'debug',
120120
'observatory': null,
121121
'remoteDebugger': null,
122-
'time': 3288
122+
'time': 3288,
123123
};
124124

125125
expect(TestEvent.fromJson(json), isA<DebugTestEvent>());
@@ -132,7 +132,7 @@ void main() {
132132
'skipped': false,
133133
'hidden': true,
134134
'type': 'testDone',
135-
'time': 2593
135+
'time': 2593,
136136
};
137137

138138
expect(TestEvent.fromJson(json), isA<TestDoneEvent>());

0 commit comments

Comments
 (0)