Skip to content

Commit

Permalink
feat(ci): run app tests for multiple devices
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed May 16, 2024
1 parent b475504 commit 74a152f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/app-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ jobs:
ci:
name: App CI 🚀
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
device: [13, 14, 15]
iOS: [17.5]

steps:
- uses: swift-actions/setup-swift@65540b95f51493d65f5e59e97dcef9629ddf11bf
with:
swift-version: 5.10
- uses: actions/checkout@v4

- name: Unit tests
run: |
cd ./app/metro-now
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' | xcpretty && exit ${PIPESTATUS[0]}
- name: Build and test
run: |
cd ./app/metro-now
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.5' | xcpretty && exit ${PIPESTATUS[0]}
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}

0 comments on commit 74a152f

Please sign in to comment.