-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from ky1vstar/main
Setup integration tests on Linux
- Loading branch information
Showing
2 changed files
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters