From 4238f0051841767982f3c78eaa63b2a0316bc623 Mon Sep 17 00:00:00 2001 From: Dillon Nys Date: Wed, 6 Mar 2024 19:20:43 -0800 Subject: [PATCH] fix linux ci --- .github/workflows/celest_core.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/celest_core.yaml b/.github/workflows/celest_core.yaml index 5e43abb4..f1566221 100644 --- a/.github/workflows/celest_core.yaml +++ b/.github/workflows/celest_core.yaml @@ -121,4 +121,11 @@ jobs: run: flutter pub get - name: Test (Linux) working-directory: packages/celest_core/example - run: flutter test --verbose -d linux integration_test/secure_storage_test.dart + run: | + # Headless tests require virtual display for the linux tests to run. + # from https://github.com/fluttercommunity/plus_plugins/blob/main/.github/workflows/scripts/integration-test.sh + export DISPLAY=:99 + sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & + # Needed for WebSocket connections in API GraphQL subscriptions. + sudo systemctl start NetworkManager.service + flutter test -d linux integration_test/secure_storage_test.dart