Skip to content

Commit

Permalink
Merge pull request #140 from ky1vstar/main
Browse files Browse the repository at this point in the history
Setup integration tests on Linux
  • Loading branch information
simolus3 authored Feb 10, 2023
2 parents 4f3d5d4 + ef305d0 commit 19e5439
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,25 +211,26 @@ jobs:
# script: flutter test integration_test
# working-directory: "integration_tests/${{ matrix.test }}"

# Linux integration tests don't work because there's no display on GitHub actions
# I don't know if this can be faked easily to get `flutter run -d linux` to work.
# integration_test_linux:
# needs: [test]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: subosito/flutter-action@v1
# with:
# channel: dev
# - name: Setup Flutter
# run: |
# flutter config --enable-linux-desktop
# sudo apt-get update -y
# sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# flutter --version
# - name: sqlite3 driver tests
# run: "flutter pub get && flutter pub run test_driver/integration_test.dart linux"
# working-directory: integration_tests/flutter_libs
integration_test_linux:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/[email protected]
- name: Setup Flutter
run: |
flutter config --enable-linux-desktop
sudo apt-get update -y
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
flutter --version
- name: sqlite3 driver tests
run: "flutter pub get && xvfb-run -a flutter test integration_test"
working-directory: integration_tests/flutter_libs

- name: sqlcipher driver tests
run: "flutter pub get && xvfb-run -a flutter test integration_test"
working-directory: integration_tests/sqlcipher_flutter

# Shamelessly stolen from https://medium.com/flutter-community/run-flutter-driver-tests-on-github-actions-13c639c7e4ab

Expand Down
3 changes: 2 additions & 1 deletion sqlite3/lib/src/wasm/js_interop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ class ResponseInit {
@staticInterop
class Response {
external factory Response(
Object /* Blob|BufferSource|FormData|ReadableStream|URLSearchParams|UVString */ body,
Object /* Blob|BufferSource|FormData|ReadableStream|URLSearchParams|UVString */
body,
ResponseInit init);
}

Expand Down

0 comments on commit 19e5439

Please sign in to comment.