Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
481ddd5
Add melos setup and check only set up Dart for now
buenaflor Jul 29, 2025
82fa1bc
Update
buenaflor Jul 30, 2025
af3e3ee
Update]
buenaflor Jul 30, 2025
7734657
Update]
buenaflor Jul 30, 2025
b5e5b42
Update
buenaflor Jul 30, 2025
75e40d4
Update
buenaflor Jul 30, 2025
086519b
Update
buenaflor Jul 30, 2025
f977b38
Fix CHANGELOG
buenaflor Aug 5, 2025
ecce8da
Update gitignore
buenaflor Aug 5, 2025
c692b29
Fix symlink in CHANGELOG
buenaflor Aug 5, 2025
0cae93e
Add logging to melos
buenaflor Aug 5, 2025
1d983dd
Update
buenaflor Aug 5, 2025
030fb25
Merge branch 'umbrella/melos' into chore/melos/logging
buenaflor Aug 5, 2025
831a6de
Update
buenaflor Aug 5, 2025
412240d
Update
buenaflor Aug 5, 2025
26ec9b8
Update
buenaflor Aug 5, 2025
33a6226
Add dio to packages
buenaflor Aug 5, 2025
f0b3ecf
Update workflow
buenaflor Aug 5, 2025
17289a5
Update
buenaflor Aug 5, 2025
feb0e3f
Update
buenaflor Aug 5, 2025
4bc5a30
Update
buenaflor Aug 5, 2025
dae9306
Update
buenaflor Aug 5, 2025
7cc04b4
Update
buenaflor Aug 5, 2025
0706b8a
Add hive to packages
buenaflor Aug 5, 2025
47ea449
Update
buenaflor Aug 5, 2025
0679ecf
Add file to packages
buenaflor Aug 5, 2025
784ef2d
Add link to packages
buenaflor Aug 5, 2025
f5a74a7
Update
buenaflor Aug 5, 2025
326b809
Update
buenaflor Aug 5, 2025
1364687
Update
buenaflor Aug 5, 2025
b7af752
Update
buenaflor Aug 5, 2025
e3e05e5
Fix test
buenaflor Aug 5, 2025
ea6336a
Fix test
buenaflor Aug 5, 2025
ccbc158
Fix test
buenaflor Aug 5, 2025
049e3dc
Fix test
buenaflor Aug 5, 2025
476b8ed
Fix test
buenaflor Aug 5, 2025
ff06f18
Merge branch 'umbrella/melos' into chore/melos/drif
buenaflor Aug 6, 2025
6065975
Update drift.yml
buenaflor Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 25 additions & 14 deletions .github/workflows/drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
- '!**/class-diagram.svg'
- '.github/workflows/drift.yml'
- '.github/workflows/analyze.yml'
- '.github/actions/flutter-test/**'
- '.github/actions/dart-test/**'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👍

- '.github/actions/coverage/**'
- 'dart/**'
- 'drift/**'
- 'packages/dart/**'
- 'packages/drift/**'

jobs:
cancel-previous-workflow:
Expand All @@ -25,36 +25,47 @@ jobs:
access_token: ${{ github.token }}

build:
name: '${{ matrix.target }} | ${{ matrix.sdk }}'
runs-on: ${{ matrix.target == 'linux' && 'ubuntu' || matrix.target }}-latest
name: '${{ matrix.os }} | ${{ matrix.sdk }}'
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
target: [macos, linux, windows]
os: [ubuntu, macos, windows]
sdk: [stable, beta]

steps:
- uses: actions/checkout@v4

- name: Install libsqlite3
if: matrix.target == 'linux'
- name: Install libsqlite3 (Ubuntu)
if: matrix.os == 'ubuntu'
run: sudo apt-get -y install libsqlite3-dev

- uses: ./.github/actions/flutter-test
- name: Install SQLite (macOS)
if: matrix.os == 'macos'
run: brew install sqlite3

- name: Install SQLite (Windows)
if: matrix.os == 'windows'
shell: powershell
run: |
choco install sqlite -y
echo "C:/ProgramData/chocolatey/lib/sqlite/tools" >> $GITHUB_PATH

- uses: ./.github/actions/dart-test
with:
directory: drift
directory: packages/drift
web: 'false'

- uses: ./.github/actions/coverage
if: matrix.target == 'linux' && matrix.sdk == 'stable'
if: matrix.os == 'ubuntu' && matrix.sdk == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: drift
directory: packages/drift
coverage: sentry_drift
min-coverage: 80

analyze:
uses: ./.github/workflows/analyze.yml
with:
package: drift
sdk: flutter
package: packages/drift
1 change: 0 additions & 1 deletion drift/CHANGELOG.md

This file was deleted.

1 change: 0 additions & 1 deletion drift/dartdoc_options.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions drift/pubspec_overrides.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions drift/test/utils/windows_helper.dart

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions packages/drift/CHANGELOG.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/drift/dartdoc_options.yaml
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions drift/pubspec.yaml → packages/drift/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ dependencies:

dev_dependencies:
lints: '>=2.0.0'
flutter_test:
sdk: flutter
test: ^1.26.3
coverage: ^1.3.0
mockito: ^5.1.0
build_runner: ^2.4.6
drift_dev: ^2.13.0
yaml: ^3.1.0 # needed for version match (code and pubspec)
sqlite3_flutter_libs: ^0.5.0
sqlite3: ^2.1.0
archive: ^3.1.2
4 changes: 4 additions & 0 deletions packages/drift/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# melos_managed_dependency_overrides: sentry
dependency_overrides:
sentry:
path: ../dart
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'package:drift/drift.dart';
import 'package:drift/native.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:test/test.dart';
import 'package:mockito/mockito.dart';
import 'package:sentry/sentry.dart';
import 'package:sentry/src/sentry_tracer.dart';
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions packages/drift/test/utils/windows_helper.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import 'dart:ffi';

DynamicLibrary openOnWindows() {
// Use the system SQLite DLL installed by Chocolatey
try {
// Try to load from system path first
return DynamicLibrary.open('sqlite3.dll');
} catch (e) {
// Fallback to absolute path from Chocolatey installation
return DynamicLibrary.open(
'C:\\ProgramData\\chocolatey\\lib\\sqlite\\tools\\sqlite3.dll',
);
}
}
Loading