From 8680a486dd38d9b0619846c3924b2c52e396a016 Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 18:25:27 +0900 Subject: [PATCH 1/6] Update ci.yml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0fdab110..201b1316 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - macos-version: [13] + macos-version: [14] fail-fast: false runs-on: macos-${{ matrix.macos-version }} steps: @@ -72,7 +72,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - ios-version: [17] + ios-version: [17,18] fail-fast: false runs-on: macos-14 steps: @@ -124,7 +124,7 @@ jobs: runs-on: macos-13 strategy: matrix: - api-level: [34,33,32,31,30,29,28,27,26,25,24,23,22,21] + api-level: [35,34,33,32,31,30,29,28,27,26,25,24,23,22,21] fail-fast: false steps: - name: Check out From dcb8daa9a33d213abc2f76fee259d95a9d289584 Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 18:28:21 +0900 Subject: [PATCH 2/6] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 201b1316..06c63a32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: android: needs: set-up timeout-minutes: 60 - runs-on: macos-13 + runs-on: macos-14 strategy: matrix: api-level: [35,34,33,32,31,30,29,28,27,26,25,24,23,22,21] From 8f301bbb7bdd38b6612c87dab907405362f4e6d4 Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 18:29:45 +0900 Subject: [PATCH 3/6] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06c63a32..939e356e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: timeout-minutes: 30 strategy: matrix: - macos-version: [14] + macos-version: [13,14] fail-fast: false runs-on: macos-${{ matrix.macos-version }} steps: From c1fd251bbc55b545161e843874f6031facea115b Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 18:39:51 +0900 Subject: [PATCH 4/6] Update ci.yml --- .github/workflows/ci.yml | 76 ++-------------------------------------- 1 file changed, 2 insertions(+), 74 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 939e356e..e7335ce8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,30 +17,7 @@ jobs: with: access_token: ${{ github.token }} - windows: - needs: set-up - timeout-minutes: 30 - strategy: - matrix: - windows-version: [10] - fail-fast: false - runs-on: windows-latest - steps: - - name: Check out - uses: actions/checkout@v4 - - - name: Setup Flutter SDK - timeout-minutes: 10 - uses: subosito/flutter-action@v2 - with: - channel: stable - - name: Run integration tests - id: Run-integration-tests - timeout-minutes: 15 - run: | - cd example - flutter test integration_test/integration_test.dart windows macos: needs: set-up @@ -65,58 +42,9 @@ jobs: timeout-minutes: 15 run: | cd example - flutter test integration_test/integration_test.dart macos + flutter test -d macos integration_test/integration_test.dart macos - ios: - needs: set-up - timeout-minutes: 60 - strategy: - matrix: - ios-version: [17,18] - fail-fast: false - runs-on: macos-14 - steps: - - name: Check out - uses: actions/checkout@v4 - - - name: Setup Flutter SDK - timeout-minutes: 10 - uses: subosito/flutter-action@v2 - with: - channel: beta - - name: Boot ios simulator - uses: futureware-tech/simulator-action@v3 - with: - os: iOS - model: 'iPhone 15' - os_version: ^${{ matrix.ios-version }} - - - name: Grant permission - run: | - brew tap wix/brew - brew install applesimutils - cd example - applesimutils --booted --bundle studio.midoridesign.galExample --setPermissions photos=YES - - - name: Run integration tests - id: Run-integration-tests - continue-on-error: true - timeout-minutes: 15 - run: | - cd example - flutter test integration_test/integration_test.dart - - # Retry: Integration testing with GitHub Actions is unstable. - - name: Retry integration tests - id: Retry-integration-tests - timeout-minutes: 15 - if: steps.Run-integration-tests.outcome == 'failure' - run: | - flutter clean && flutter pub get - cd example - flutter clean && flutter pub get - flutter test integration_test/integration_test.dart android: needs: set-up @@ -124,7 +52,7 @@ jobs: runs-on: macos-14 strategy: matrix: - api-level: [35,34,33,32,31,30,29,28,27,26,25,24,23,22,21] + api-level: [35] fail-fast: false steps: - name: Check out From 8fe74aba227ac9463b6b46baa67cdd268940f73d Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 18:44:13 +0900 Subject: [PATCH 5/6] Update ci.yml --- .github/workflows/ci.yml | 74 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7335ce8..0bfab00b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,30 @@ jobs: with: access_token: ${{ github.token }} + windows: + needs: set-up + timeout-minutes: 30 + strategy: + matrix: + windows-version: [10] + fail-fast: false + runs-on: windows-latest + steps: + - name: Check out + uses: actions/checkout@v4 + + - name: Setup Flutter SDK + timeout-minutes: 10 + uses: subosito/flutter-action@v2 + with: + channel: stable + - name: Run integration tests + id: Run-integration-tests + timeout-minutes: 15 + run: | + cd example + flutter test integration_test/integration_test.dart windows macos: needs: set-up @@ -44,7 +67,56 @@ jobs: cd example flutter test -d macos integration_test/integration_test.dart macos + ios: + needs: set-up + timeout-minutes: 60 + strategy: + matrix: + ios-version: [17,18] + fail-fast: false + runs-on: macos-14 + steps: + - name: Check out + uses: actions/checkout@v4 + + - name: Setup Flutter SDK + timeout-minutes: 10 + uses: subosito/flutter-action@v2 + with: + channel: beta + - name: Boot ios simulator + uses: futureware-tech/simulator-action@v3 + with: + os: iOS + model: 'iPhone 15' + os_version: ^${{ matrix.ios-version }} + + - name: Grant permission + run: | + brew tap wix/brew + brew install applesimutils + cd example + applesimutils --booted --bundle studio.midoridesign.galExample --setPermissions photos=YES + + - name: Run integration tests + id: Run-integration-tests + continue-on-error: true + timeout-minutes: 15 + run: | + cd example + flutter test integration_test/integration_test.dart + + # Retry: Integration testing with GitHub Actions is unstable. + - name: Retry integration tests + id: Retry-integration-tests + timeout-minutes: 15 + if: steps.Run-integration-tests.outcome == 'failure' + run: | + flutter clean && flutter pub get + cd example + flutter clean && flutter pub get + flutter test integration_test/integration_test.dart android: needs: set-up @@ -52,7 +124,7 @@ jobs: runs-on: macos-14 strategy: matrix: - api-level: [35] + api-level: [34,33,32,31,30,29,28,27,26,25,24,23,22,21] fail-fast: false steps: - name: Check out From 6ad4208cb2ec4bad0d70b97e9d9963d0d5e546da Mon Sep 17 00:00:00 2001 From: Yu / Midori Date: Sat, 31 Aug 2024 19:02:49 +0900 Subject: [PATCH 6/6] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bfab00b..97c175fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: android: needs: set-up timeout-minutes: 60 - runs-on: macos-14 + runs-on: macos-13 strategy: matrix: api-level: [34,33,32,31,30,29,28,27,26,25,24,23,22,21]