pana_workspace 0.1.0
pana_workspace: ^0.1.0 copied to clipboard
Scores the packages of a pub workspace with pana before they are published, resolving sibling packages from the checkout, and fails when one loses pub.dev points.
pana_workspace examples #
Score every package of the workspace that can be published:
dart pub global activate pana_workspace
cd my_workspace
pana_workspace check
Score one package from a GitHub Actions workflow:
- uses: actions/checkout@v7
- uses: subosito/flutter-action@v2
- uses: bluefireteam/pana_workspace@v0
with:
packages: my_package
Use the package server and the report check from Dart:
import 'package:pana_workspace/pana_workspace.dart';
Future<void> main() async {
final workspace = Workspace.load(Workspace.findRoot('.')!);
final server = await PackageServer.start(workspace);
print('pana --hosted-url ${server.url} <package> <version>');
}
The fixture workspace that the tests score has a package that depends on an unpublished version of its sibling.