10
10
- ' !**/class-diagram.svg'
11
11
- ' .github/workflows/drift.yml'
12
12
- ' .github/workflows/analyze.yml'
13
- - ' .github/actions/flutter -test/**'
13
+ - ' .github/actions/dart -test/**'
14
14
- ' .github/actions/coverage/**'
15
- - ' dart/**'
16
- - ' drift/**'
15
+ - ' packages/ dart/**'
16
+ - ' packages/ drift/**'
17
17
18
18
jobs :
19
19
cancel-previous-workflow :
@@ -25,36 +25,47 @@ jobs:
25
25
access_token : ${{ github.token }}
26
26
27
27
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
30
30
timeout-minutes : 30
31
31
strategy :
32
32
fail-fast : false
33
33
matrix :
34
- target : [macos, linux , windows]
34
+ os : [ubuntu, macos , windows]
35
35
sdk : [stable, beta]
36
36
37
37
steps :
38
38
- uses : actions/checkout@v4
39
39
40
- - name : Install libsqlite3
41
- if : matrix.target == 'linux '
40
+ - name : Install libsqlite3 (Ubuntu)
41
+ if : matrix.os == 'ubuntu '
42
42
run : sudo apt-get -y install libsqlite3-dev
43
43
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
45
56
with :
46
- directory : drift
57
+ directory : packages/drift
58
+ web : ' false'
47
59
48
60
- uses : ./.github/actions/coverage
49
- if : matrix.target == 'linux ' && matrix.sdk == 'stable'
61
+ if : matrix.os == 'ubuntu ' && matrix.sdk == 'stable'
50
62
with :
51
63
token : ${{ secrets.CODECOV_TOKEN }}
52
- directory : drift
64
+ directory : packages/ drift
53
65
coverage : sentry_drift
54
66
min-coverage : 80
55
67
56
68
analyze :
57
69
uses : ./.github/workflows/analyze.yml
58
70
with :
59
- package : drift
60
- sdk : flutter
71
+ package : packages/drift
0 commit comments