Create github actions #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: iOS Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-test: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
include: | |
- ios: "18.0" | |
- ios: "15.0" | |
name: iOS Tests (${{ matrix.iOS }}) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Flutter SDK | |
uses: flutter-actions/setup-flutter@v4 | |
with: | |
channel: stable | |
version: 3.27.0 | |
- name: Install dependencies | |
run: | | |
brew update | |
brew install cocoapods | |
flutter pub get | |
cd example/ios | |
pod install | |
cd ../.. | |
- name: Run tests | |
run: | | |
xcodebuild test -workspace ./example/ios/Runner.xcworkspace \ | |
-scheme EasyCalendarTests \ | |
-destination 'platform=iOS Simulator,OS=$,name=iPhone 16' \ | |
-sdk iphonesimulator \ | |
| xcpretty && exit ${PIPESTATUS[0]} |