Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS tests for package:cupertino_http #1403

Merged
merged 3 commits into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 31 additions & 3 deletions .github/workflows/cupertino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,20 @@ env:
PUB_ENVIRONMENT: bot.github

jobs:
verify:
name: Format & Analyze & Test
macos:
name: "macOS: Format & Analyze & 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"]
# 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
Expand All @@ -48,6 +50,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 -d 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
Expand Down
Loading