diff --git a/pkgs/hooks/test/example/native_dynamic_linking_test.dart b/pkgs/hooks/test/example/native_dynamic_linking_test.dart index 4914e84450..27c4ad2dbb 100644 --- a/pkgs/hooks/test/example/native_dynamic_linking_test.dart +++ b/pkgs/hooks/test/example/native_dynamic_linking_test.dart @@ -32,7 +32,9 @@ void main() async { test( 'native_dynamic_linking build', - skip: Platform.isMacOS || Platform.isWindows + skip: + (Platform.isMacOS || Platform.isWindows) && + Platform.environment['GITHUB_ACTIONS'] != null ? 'https://github.com/dart-lang/native/issues/2501' : false, () async { diff --git a/pkgs/hooks_runner/test/test_data/native_dynamic_linking_test.dart b/pkgs/hooks_runner/test/test_data/native_dynamic_linking_test.dart index 1ea63ca78e..7d64825626 100644 --- a/pkgs/hooks_runner/test/test_data/native_dynamic_linking_test.dart +++ b/pkgs/hooks_runner/test/test_data/native_dynamic_linking_test.dart @@ -20,6 +20,11 @@ void main() async { test( 'native_dynamic_linking build', + skip: + (Platform.isMacOS || Platform.isWindows) && + Platform.environment['GITHUB_ACTIONS'] != null + ? 'https://github.com/dart-lang/native/issues/2501' + : false, () => inTempDir((tempUri) async { final buildOutputUri = tempUri.resolve('build_output.json'); var outputDirectory = tempUri.resolve('out/'); diff --git a/tool/ci.dart b/tool/ci.dart index 51f5dc7029..6beff5b7d4 100644 --- a/tool/ci.dart +++ b/tool/ci.dart @@ -68,7 +68,11 @@ void main(List arguments) async { if (argResults['test'] as bool) { final testUris = getTestUris(packages); - _runProcess('dart', ['test', ...testUris]); + _runProcess('dart', [ + 'test', + if (Platform.environment['GITHUB_ACTIONS'] != null) '--reporter=github', + ...testUris, + ]); } if (argResults['example'] as bool) {