Skip to content

Commit 2f954e1

Browse files
authored
Add macOS tests for package:cupertino_http (#1403)
1 parent 03ced4d commit 2f954e1

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/cupertino.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ env:
2121
PUB_ENVIRONMENT: bot.github
2222

2323
jobs:
24-
verify:
25-
name: Format & Analyze & Test
24+
macos:
25+
name: "macOS: Format & Analyze & Test"
2626
runs-on: macos-latest
2727
defaults:
2828
run:
2929
working-directory: pkgs/cupertino_http
3030
strategy:
31-
fail-fast: false
3231
matrix:
3332
# Test on the minimum supported flutter version and the latest
3433
# version.
3534
flutter-version: ["3.24.0", "any"]
35+
# It would be nice to test on older versions of macOS but macOS 13 is
36+
# the oldest supported by GitHub.
37+
os: [macos-13, macos-latest]
3638
steps:
3739
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3840
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
@@ -48,6 +50,32 @@ jobs:
4850
- name: Analyze code
4951
run: flutter analyze --fatal-infos
5052
if: always() && steps.install.outcome == 'success'
53+
- name: Run tests
54+
run: |
55+
cd example
56+
flutter pub get
57+
flutter test -d macos integration_test/main.dart --test-randomize-ordering-seed=random
58+
ios:
59+
name: "iOS: Test"
60+
runs-on: macos-latest
61+
defaults:
62+
run:
63+
working-directory: pkgs/cupertino_http
64+
strategy:
65+
fail-fast: false
66+
matrix:
67+
# Test on the minimum supported flutter version and the latest
68+
# version.
69+
flutter-version: ["3.24.0", "any"]
70+
steps:
71+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
72+
- uses: subosito/flutter-action@44ac965b96f18d999802d4b807e3256d5a3f9fa1
73+
with:
74+
flutter-version: ${{ matrix.flutter-version }}
75+
channel: 'stable'
76+
- id: install
77+
name: Install dependencies
78+
run: flutter pub get
5179
- uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd
5280
with:
5381
os: iOS

0 commit comments

Comments
 (0)