Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ened committed Apr 9, 2024
1 parent 4ac2481 commit 93cd9ed
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 93cd9ed

Please sign in to comment.