1010 - ' pkgs/ffigen/**'
1111 - ' pkgs/objective_c/**'
1212 pull_request :
13- branches : [main, stable ]
13+ branches : [main]
1414 paths :
1515 - ' .github/workflows/ffigen.yml'
1616 - ' pkgs/ffigen/**'
@@ -34,17 +34,17 @@ jobs:
3434 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
3535 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
3636 with :
37- channel : ' stable'
37+ channel : stable
3838 - id : install
3939 name : Install dependencies
40- run : flutter pub get && flutter pub get --directory="example/shared_bindings" && flutter pub get --directory="../objective_c" && flutter pub get --directory="example/add"
40+ run : dart pub get && dart pub get --directory="example/shared_bindings" && dart pub get --directory="../objective_c" && dart pub get --directory="example/add"
4141 - name : Check formatting
4242 run : dart format --output=none --set-exit-if-changed .
4343 if : always() && steps.install.outcome == 'success'
4444 - name : Build test dylib and bindings
4545 run : dart --enable-asserts test/setup.dart
4646 - name : Analyze code
47- run : flutter analyze --fatal-infos
47+ run : dart analyze --fatal-infos
4848
4949 test-linux :
5050 needs : analyze
5656 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
5757 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
5858 with :
59- channel : ' stable'
59+ channel : stable
6060 - name : Install dependencies
61- run : flutter pub get && flutter pub get --directory="../jni"
61+ run : dart pub get && flutter pub get --directory="../jni"
6262 - name : Install libclang-14-dev
6363 run : sudo apt-get install libclang-14-dev
6464 - name : Build test dylib and bindings
8282 with :
8383 channel : stable
8484 - name : Install dependencies
85- run : flutter pub get && flutter pub get --directory="../objective_c" && flutter pub get --directory="../jni"
85+ run : dart pub get && dart pub get --directory="../objective_c" && flutter pub get --directory="../jni"
8686 - name : Install clang-format
8787 uses : ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30
8888 with :
9292 - name : Install coverage
9393 run : dart pub global activate coverage
9494 - name : Run VM tests and collect coverage
95- run : dart pub global run coverage:test_with_coverage --scope-output=ffigen --scope-output=objective_c
95+ run : dart test --coverage-path=./coverage/lcov.info
9696 - name : Generate package:jni bindings
9797 run : dart --enable-asserts run tool/generate_ffi_bindings.dart
9898 working-directory : pkgs/jni/
@@ -120,16 +120,16 @@ jobs:
120120 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
121121 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
122122 with :
123- channel : master
123+ channel : stable
124124 - name : Install dependencies
125- run : flutter pub get && flutter pub get --directory="../objective_c" && flutter pub get --directory="../jni"
125+ run : dart pub get && dart pub get --directory="../objective_c" && flutter pub get --directory="../jni"
126126 - name : Install clang-format
127127 uses : ConorMacBride/install-package@3e7ad059e07782ee54fa35f827df52aae0626f30
128128 with :
129129 brew : clang-format
130130 - name : Build test dylib and bindings
131131 run : dart --enable-asserts test/setup.dart
132- - name : Run VM tests and collect coverage
132+ - name : Run VM tests
133133 run : dart test
134134
135135 test-mac-flutter :
@@ -142,13 +142,13 @@ jobs:
142142 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
143143 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
144144 with :
145- channel : ' stable'
145+ channel : stable
146146 - name : Install dependencies
147- run : flutter pub get && flutter pub get --directory="../objective_c"
147+ run : dart pub get && dart pub get --directory="../objective_c"
148148 - name : Build test dylib and bindings
149- run : dart --enable-asserts test/setup.dart --main-thread-dispatcher
149+ run : dart --enable-asserts test/setup.dart
150150 - name : Run Flutter tests
151- run : flutter test
151+ run : dart test
152152
153153 test-windows :
154154 needs : analyze
@@ -160,9 +160,9 @@ jobs:
160160 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
161161 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
162162 with :
163- channel : ' stable'
163+ channel : stable
164164 - name : Install dependencies
165- run : flutter pub get && flutter pub get --directory="../jni"
165+ run : dart pub get && flutter pub get --directory="../jni"
166166 - name : Build test dylib and bindings
167167 run : dart --enable-asserts test/setup.dart
168168 - name : Run VM tests
@@ -191,7 +191,7 @@ jobs:
191191 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
192192 - uses : subosito/flutter-action@fd55f4c5af5b953cc57a2be44cb082c8f6635e8e
193193 with :
194- channel : " master "
194+ channel : stable
195195 - name : Install dependencies
196196 run : flutter pub get
197197 - name : Build test dylib and bindings
0 commit comments