Skip to content

Commit

Permalink
run analyzer on benchmark package, add it to workspace (#3820)
Browse files Browse the repository at this point in the history
* run analyzer on benchmark package, add it to workspace

* use the 3.6.0 sdk
  • Loading branch information
jakemac53 authored Feb 4, 2025
1 parent 5c1ddd4 commit 4e5a83c
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions _benchmark/lib/commands.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CreateCommand extends Command<void> {
Future<void> run() => _run(globalResults!);

Future<void> _run(ArgResults globalResults) async {
final config = Config.fromArgResults(globalResults!);
final config = Config.fromArgResults(globalResults);

for (final size in config.sizes) {
final paddedSize = size.toString().padLeft(4, '0');
Expand Down Expand Up @@ -64,7 +64,7 @@ class MeasureCommand extends Command<void> {

Future<void> _run(ArgResults globalResults) async {
// Launch a benchmark at each size in parallel.
final config = Config.fromArgResults(globalResults!);
final config = Config.fromArgResults(globalResults);
final pendingResults = <int, PendingResult>{};
for (final size in config.sizes) {
final paddedSize = size.toString().padLeft(4, '0');
Expand Down
9 changes: 9 additions & 0 deletions _benchmark/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
sdk:
- pubspec

os:
- linux

stages:
- analyze_and_format:
- analyze: --fatal-infos .
3 changes: 2 additions & 1 deletion _benchmark/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: _benchmark
publish_to: none
environment:
sdk: ^3.7.0-edge
sdk: ^3.6.0
resolution: workspace

dependencies:
args: ^2.6.0
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dev_dependencies:
dart_flutter_team_lints: ^3.1.0

workspace:
- _benchmark
- _test
- _test/pkgs/provides_builder
- _test_common
Expand Down

0 comments on commit 4e5a83c

Please # to comment.