diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9063cdd..c2157b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,9 +28,11 @@ jobs: with: channel: 'stable' - name: Build iOS App - run: cd example && flutter build ios --debug --no-codesign - - name: Run native iOS tests - run: cd example/ios && xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=16.2' test + run: | + dart pub global activate melos + melos bootstrap + cd example && flutter build ios --debug --no-codesign + cd ios && xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12,OS=16.2' test native_android_tests: runs-on: macos-latest @@ -43,9 +45,11 @@ jobs: with: channel: 'stable' - name: Build Android App - run: cd example && flutter build apk --debug - - name: Run native Android tests - run: cd example/android && gradle workmanager:test + run: | + dart pub global activate melos + melos bootstrap + cd example && flutter build apk --debug + cd android && gradle workmanager:test drive_ios: strategy: @@ -64,7 +68,10 @@ jobs: channel: 'stable' # Run flutter integrate tests - name: Run Flutter integration tests - run: cd example && flutter test integration_test/workmanager_integration_test.dart + run: | + dart pub global activate melos + melos bootstrap + cd example && flutter test integration_test/workmanager_integration_test.dart drive_android: @@ -89,4 +96,7 @@ jobs: with: api-level: ${{ matrix.api-level }} target: ${{ matrix.target }} - script: cd example && flutter test integration_test/workmanager_integration_test.dart + script: | + dart pub global activate melos + melos bootstrap + cd example && flutter test integration_test/workmanager_integration_test.dart