mirror of
https://github.com/flutter/packages.git
synced 2025-05-31 21:48:04 +08:00
[pigeon] Support other hosts in generated file CI checks (#5944)
Reworks Pigeon's CI validation of generated files to support multiple hosts, rather than only Linux, with the ability to set specific languages per host, to allow us to run validation for each language on whatever host it is most convenient to set up a formatter for that language, rather than having to support all languages on Linux. See discussion in https://github.com/flutter/packages/pull/5928 Part of https://github.com/flutter/flutter/issues/41129
This commit is contained in:
@ -573,22 +573,6 @@ void main() {
|
||||
]));
|
||||
});
|
||||
|
||||
test('skips generated Swift files', () async {
|
||||
const List<String> files = <String>[
|
||||
'macos/foo.gen.swift',
|
||||
'macos/foo.g.swift',
|
||||
];
|
||||
createFakePlugin(
|
||||
'a_plugin',
|
||||
packagesDir,
|
||||
extraFiles: files,
|
||||
);
|
||||
|
||||
await runCapturingPrint(runner, <String>['format', '--swift']);
|
||||
|
||||
expect(processRunner.recordedCalls, orderedEquals(<ProcessCall>[]));
|
||||
});
|
||||
|
||||
test('skips Swift if --no-swift flag is provided', () async {
|
||||
const List<String> files = <String>[
|
||||
'macos/foo.swift',
|
||||
|
Reference in New Issue
Block a user