fix: windows CI build failed (#3741)

This commit is contained in:
Lucas.Xu 2023-10-22 01:04:38 +08:00 committed by GitHub
parent 1793a28cbc
commit bf0cfa798c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -16,9 +16,6 @@ void main() {
final context = await tester.initializeAppFlowy();
await tester.tapGoButton();
// expect to see a readme page
tester.expectToSeePageName(gettingStarted);
// mock the file picker
final path = await mockSaveFilePath(
p.join(context.applicationDataDirectory, 'test.md'),

View File

@ -1,3 +1,5 @@
import 'dart:io';
import 'package:appflowy/core/config/kv.dart';
import 'package:appflowy/core/config/kv_keys.dart';
import 'package:appflowy/generated/flowy_svgs.g.dart';
@ -27,6 +29,10 @@ extension CommonOperations on WidgetTester {
Future<void> tapGoButton() async {
final goButton = find.byType(GoButton);
await tapButton(goButton);
if (Platform.isWindows) {
await pumpAndSettle(const Duration(milliseconds: 200));
}
}
/// Tap the + button on the home page.

View File

@ -11,7 +11,7 @@ run_task = { name = ["appflowy-flutter-deps-tools","install_diesel"] }
run_task = { name = ["appflowy-tauri-deps-tools","install_diesel"] }
[tasks.install_windows_deps.windows]
dependencies=["check_duckscript_installation", "check_visual_studio_installation", "check_vcpkg", "install_vcpkg_sqlite", "install_rust_vcpkg_cli"]
dependencies=["check_duckscript_installation", "check_vcpkg", "install_vcpkg_sqlite", "install_rust_vcpkg_cli"]
[tasks.check_visual_studio_installation.windows]
script = """
@ -158,7 +158,7 @@ script_runner = "@duckscript"
script = """
GOLINT_FILENAME="go-gitlint_1.1.0_osx_x86_64.tar.gz"
curl -L https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME} --output ${GOLINT_FILENAME}
tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
rm ${GOLINT_FILENAME}
"""
@ -166,7 +166,7 @@ rm ${GOLINT_FILENAME}
script = """
GOLINT_FILENAME="go-gitlint_1.1.0_linux_x86_64.tar.gz"
wget https://github.com/llorllale/go-gitlint/releases/download/1.1.0/${GOLINT_FILENAME}
tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
tar -zxv --directory ../.githooks/. -f ${GOLINT_FILENAME} gitlint
rm ${GOLINT_FILENAME}
"""