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 7dd7dbf
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/app-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ on: push

jobs:
ci:
name: App CI 🚀
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
device: [14, 15]
iOS: [17.5]
name: App CI 🚀 (iPhone ${{ matrix.device }}, iOS ${{ matrix.iOS }} )

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 7dd7dbf

Please sign in to comment.