Skip to content

Commit 775ac23

Browse files
authored
melos #7: drift (#3134)
* Add melos setup and check only set up Dart for now * Update * Update] * Update] * Update * Update * Update * Fix CHANGELOG * Update gitignore * Fix symlink in CHANGELOG * Add logging to melos * Update * Update * Update * Update * Add dio to packages * Update workflow * Update * Update * Update * Update * Update * Add hive to packages * Update * Add file to packages * Add link to packages * Update * Update * Update * Update * Fix test * Fix test * Fix test * Fix test * Fix test * Update drift.yml
1 parent e2d836a commit 775ac23

29 files changed

+47
-31
lines changed

.github/workflows/drift.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ on:
1010
- '!**/class-diagram.svg'
1111
- '.github/workflows/drift.yml'
1212
- '.github/workflows/analyze.yml'
13-
- '.github/actions/flutter-test/**'
13+
- '.github/actions/dart-test/**'
1414
- '.github/actions/coverage/**'
15-
- 'dart/**'
16-
- 'drift/**'
15+
- 'packages/dart/**'
16+
- 'packages/drift/**'
1717

1818
jobs:
1919
cancel-previous-workflow:
@@ -25,36 +25,47 @@ jobs:
2525
access_token: ${{ github.token }}
2626

2727
build:
28-
name: '${{ matrix.target }} | ${{ matrix.sdk }}'
29-
runs-on: ${{ matrix.target == 'linux' && 'ubuntu' || matrix.target }}-latest
28+
name: '${{ matrix.os }} | ${{ matrix.sdk }}'
29+
runs-on: ${{ matrix.os }}-latest
3030
timeout-minutes: 30
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
target: [macos, linux, windows]
34+
os: [ubuntu, macos, windows]
3535
sdk: [stable, beta]
3636

3737
steps:
3838
- uses: actions/checkout@v4
3939

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

44-
- uses: ./.github/actions/flutter-test
44+
- name: Install SQLite (macOS)
45+
if: matrix.os == 'macos'
46+
run: brew install sqlite3
47+
48+
- name: Install SQLite (Windows)
49+
if: matrix.os == 'windows'
50+
shell: powershell
51+
run: |
52+
choco install sqlite -y
53+
echo "C:/ProgramData/chocolatey/lib/sqlite/tools" >> $GITHUB_PATH
54+
55+
- uses: ./.github/actions/dart-test
4556
with:
46-
directory: drift
57+
directory: packages/drift
58+
web: 'false'
4759

4860
- uses: ./.github/actions/coverage
49-
if: matrix.target == 'linux' && matrix.sdk == 'stable'
61+
if: matrix.os == 'ubuntu' && matrix.sdk == 'stable'
5062
with:
5163
token: ${{ secrets.CODECOV_TOKEN }}
52-
directory: drift
64+
directory: packages/drift
5365
coverage: sentry_drift
5466
min-coverage: 80
5567

5668
analyze:
5769
uses: ./.github/workflows/analyze.yml
5870
with:
59-
package: drift
60-
sdk: flutter
71+
package: packages/drift

drift/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

drift/dartdoc_options.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

drift/pubspec_overrides.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

drift/test/utils/windows_helper.dart

Lines changed: 0 additions & 8 deletions
This file was deleted.
File renamed without changes.

packages/drift/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../CHANGELOG.md
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)