From 7dd7dbfc0c2ffc7f60079a09e275044029df8b6a Mon Sep 17 00:00:00 2001 From: Krystof Date: Thu, 16 May 2024 22:54:44 +0200 Subject: [PATCH] feat(ci): run app tests for multiple devices --- .github/workflows/app-ci.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/app-ci.yaml b/.github/workflows/app-ci.yaml index 4ebb149..499d0e3 100644 --- a/.github/workflows/app-ci.yaml +++ b/.github/workflows/app-ci.yaml @@ -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]}