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