Skip to content

Create github actions #12

Create github actions

Create github actions #12

Workflow file for this run

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,name=iPhone 14,OS=$'
-sdk iphonesimulator \
| xcpretty && exit ${PIPESTATUS[0]}