From ce9caab5438029c22628c95a07c06f523d60d7ef Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 11 Nov 2024 14:42:28 -0800 Subject: [PATCH 1/3] Add macOS tests --- .github/workflows/cupertino.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 3c1865a4ec..4ce662dbc8 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -21,8 +21,8 @@ env: PUB_ENVIRONMENT: bot.github jobs: - verify: - name: Format & Analyze & Test + macos: + name: "macOS: Format & Analyze & Test" runs-on: macos-latest defaults: run: @@ -33,6 +33,7 @@ jobs: # Test on the minimum supported flutter version and the latest # version. flutter-version: ["3.24.0", "any"] + os: [macos-12, macos-latest] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 @@ -48,6 +49,32 @@ jobs: - name: Analyze code run: flutter analyze --fatal-infos if: always() && steps.install.outcome == 'success' + - name: Run tests + run: | + cd example + flutter pub get + flutter test -p macos integration_test/main.dart --test-randomize-ordering-seed=random + ios: + name: "iOS: Test" + runs-on: macos-latest + defaults: + run: + working-directory: pkgs/cupertino_http + strategy: + fail-fast: false + matrix: + # Test on the minimum supported flutter version and the latest + # version. + flutter-version: ["3.24.0", "any"] + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1 + with: + flutter-version: ${{ matrix.flutter-version }} + channel: 'stable' + - id: install + name: Install dependencies + run: flutter pub get - uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd with: os: iOS From 43bd6c2c2af95de0af2fb75c31d8d8e388d830f4 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 11 Nov 2024 14:50:12 -0800 Subject: [PATCH 2/3] Update cupertino.yml --- .github/workflows/cupertino.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index 4ce662dbc8..c4b84449e9 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -53,7 +53,7 @@ jobs: run: | cd example flutter pub get - flutter test -p macos integration_test/main.dart --test-randomize-ordering-seed=random + flutter test -d macos integration_test/main.dart --test-randomize-ordering-seed=random ios: name: "iOS: Test" runs-on: macos-latest From 7352f4ae1003751e7de220955adcfd9c40c5bc2b Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 11 Nov 2024 15:03:57 -0800 Subject: [PATCH 3/3] Update cupertino.yml --- .github/workflows/cupertino.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cupertino.yml b/.github/workflows/cupertino.yml index c4b84449e9..3b52d1a189 100644 --- a/.github/workflows/cupertino.yml +++ b/.github/workflows/cupertino.yml @@ -28,12 +28,13 @@ jobs: run: working-directory: pkgs/cupertino_http strategy: - fail-fast: false matrix: # Test on the minimum supported flutter version and the latest # version. flutter-version: ["3.24.0", "any"] - os: [macos-12, macos-latest] + # It would be nice to test on older versions of macOS but macOS 13 is + # the oldest supported by GitHub. + os: [macos-13, macos-latest] steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1