Skip to content

Commit

Permalink
Merge pull request #251 from natsuk4ze/Optimize-CI
Browse files Browse the repository at this point in the history
Optimize CI
  • Loading branch information
natsuk4ze authored Dec 15, 2024
2 parents 597c704 + 0fb4522 commit 71c3de1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: beta
cache: true

- name: Install Flutter dependencies
run: flutter pub get ./example
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: beta
cache: true

- name: Boot iOS simulator
uses: futureware-tech/simulator-action@v4
with:
os: iOS
os_version: ^${{ matrix.ios-version }}
wait_for_boot: true
erase_before_boot: true

- name: Grant permission
run: |
Expand Down Expand Up @@ -55,6 +57,7 @@ jobs:
if: steps.Run-integration-tests.outcome == 'failure'
timeout-minutes: 15
run: |
flutter clean && flutter pub get
cd example
flutter clean && flutter pub get
flutter test integration_test/integration_test.dart
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: beta
cache: true

- name: Set Package Manager Configuration
run: |
Expand All @@ -33,19 +34,10 @@ jobs:
- name: Run integration tests
id: Run-integration-tests
timeout-minutes: 15
continue-on-error: true
run: |
cd example
flutter test -d macos integration_test/integration_test.dart macos
- name: Retry integration tests
if: steps.Run-integration-tests.outcome == 'failure'
timeout-minutes: 15
run: |
cd example
flutter clean && flutter pub get
flutter test -d macos integration_test/integration_test.dart macos
- name: Validate Podspec in CocoaPods
if: matrix.package_manager == 'cocoapods'
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Run integration tests
id: Run-integration-tests
Expand Down

0 comments on commit 71c3de1

Please sign in to comment.