Skip to content

Commit

Permalink
Merge pull request #393 from tatsutakein-jp/feature/GH-389
Browse files Browse the repository at this point in the history
ci: grinder を導入
  • Loading branch information
tatsutakein authored Jun 14, 2024
2 parents 4fbbd4c + ca7f76c commit e9cb340
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pubspec.lock

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

1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ dependency_overrides:
file: 7.0.0

dev_dependencies:
grinder: 0.9.5
melos: 6.0.0
yumemi_lints: 2.1.0
14 changes: 14 additions & 0 deletions tool/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,20 @@ else
echo "⚠️ mason get: See https://docs.brickhub.dev/installing for installation."
fi

##############################################################################
##
## grinder
##
##############################################################################
echo ""
echo "🚀 grinder check: Start"
if type grinder >/dev/null 2>&1; then
echo "✅ grinder check: Success"
else
echo "⚠️ grinder check: Skip grinder because it could not be found."
echo "⚠️ grinder check: See https://pub.dev/packages/grinder/install for installation."
fi

##############################################################################
##
## Finish
Expand Down
17 changes: 17 additions & 0 deletions tool/grind.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ignore_for_file: unreachable_from_main

import 'package:grinder/grinder.dart';

Future<void> main(List<String> args) async => grind(args);

@Task()
Future<dynamic> test() async => TestRunner().testAsync();

@DefaultTask()
@Depends(test)
Future<void> build() async {
Pub.build();
}

@Task()
void clean() => defaultClean();

0 comments on commit e9cb340

Please sign in to comment.