openci_workflow 0.1.2
openci_workflow: ^0.1.2 copied to clipboard
Define and run OpenCI workflows in Dart with branch triggers, shell commands, Flutter helpers, and live log streaming.
example/openci_workflow_example.dart
import 'package:openci_workflow/openci_workflow.dart';
Future<void> main() async {
final openCI = await OpenCI.init(
workflowName: 'Static Analysis',
ciTriggers: [
CITrigger.push(branch: 'main'),
CITrigger.pullRequest(branch: 'main'),
],
);
await openCI.run('dart analyze --fatal-infos');
}