Skip to content

Commit 4ffeb6c

Browse files
committed
skip windows test
1 parent cbc8b43 commit 4ffeb6c

File tree

3 files changed

+13
-126
lines changed

3 files changed

+13
-126
lines changed

.github/workflows/drift.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
os: [ubuntu-latest, windows-latest, macos-latest]
36-
target: ["ios", "android", "macos", "linux", "windows"]
35+
# skipping Windows for now since it requires sqlite3.dll to get working
36+
os: [ubuntu-latest, macos-latest]
37+
target: ["ios", "android", "macos", "linux"]
3738
sdk: ["stable", "beta"]
3839
exclude:
3940
- os: ubuntu-latest
@@ -78,11 +79,6 @@ jobs:
7879
sudo apt install -y network-manager upower
7980
if: matrix.os == 'ubuntu-latest' && matrix.target == 'linux'
8081

81-
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d # pin@v1
82-
with:
83-
sdk: ${{ matrix.sdk }}
84-
- uses: actions/checkout@v4
85-
8682
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
8783
with:
8884
channel: ${{ matrix.sdk }}
@@ -94,14 +90,6 @@ jobs:
9490
cd drift
9591
flutter pub get
9692
97-
# Install sqlite3.dll and add it to path
98-
- name: "Setup Windows"
99-
run: |
100-
cd drift
101-
dart run test/download_sqlite3.dart
102-
working-directory: ${{ github.workspace }}
103-
if: matrix.os == 'windows-latest' && matrix.target == 'windows'
104-
10593
- name: Test VM with coverage
10694
run: |
10795
cd drift

drift/test/download_sqlite3.dart

-111
This file was deleted.

drift/test/sentry_database_test.dart

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@ import 'package:sentry_drift/src/sentry_transaction_executor.dart';
1313
import 'mocks/mocks.mocks.dart';
1414
import 'test_database.dart';
1515

16+
import 'dart:ffi';
17+
import 'dart:io';
18+
19+
DynamicLibrary _openOnLinux() {
20+
final scriptDir = File(Platform.script.toFilePath()).parent;
21+
print('scriptDir');
22+
final libraryNextToScript = File('${scriptDir.path}/sqlite3.dll');
23+
return DynamicLibrary.open(libraryNextToScript.path);
24+
}
25+
1626
void main() {
1727
final expectedInsertStatement =
1828
'INSERT INTO "todo_items" ("title", "body") VALUES (?, ?)';

0 commit comments

Comments
 (0)