Skip to content

Commit 1380667

Browse files
committed
fix(flutter): update Docker image for Flutter tests
The fischerscode/flutter-sudo Docker image has not been updated for 11 months so it doesn't have the latest Flutter SDK versions. This commit updates the Docker image to use `ghcr.io/cirruslabs/flutter` for both beta and stable channels, ensuring that the tests run with the latest Flutter SDK.
1 parent ba65741 commit 1380667

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/FlutterBetaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FlutterBetaTest extends Base
1616
'cp tests/languages/flutter/tests.dart tests/sdks/flutter/test/appwrite_test.dart',
1717
];
1818
protected string $command =
19-
'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/flutter fischerscode/flutter-sudo:beta sh -c "sudo chown -R flutter:flutter . && flutter pub get && flutter test test/appwrite_test.dart"';
19+
'docker run --network="mockapi" --rm -v $(pwd):/app -w /app/tests/sdks/flutter ghcr.io/cirruslabs/flutter:beta sh -c "flutter pub get && flutter test test/appwrite_test.dart"';
2020

2121
protected array $expectedOutput = [
2222
...Base::PING_RESPONSE,

tests/FlutterStableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class FlutterStableTest extends Base
1616
'cp tests/languages/flutter/tests.dart tests/sdks/flutter/test/appwrite_test.dart',
1717
];
1818
protected string $command =
19-
'docker run --network="mockapi" --rm -v $(pwd):/app:rw -w /app/tests/sdks/flutter fischerscode/flutter-sudo:stable sh -c "sudo chown -R flutter:flutter . && flutter pub get && flutter test test/appwrite_test.dart"';
19+
'docker run --network="mockapi" --rm -v $(pwd):/app:rw -w /app/tests/sdks/flutter ghcr.io/cirruslabs/flutter:stable sh -c "flutter pub get && flutter test test/appwrite_test.dart"';
2020

2121
protected array $expectedOutput = [
2222
...Base::PING_RESPONSE,

0 commit comments

Comments
 (0)