-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 1.16 KB
/
app-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: App CI
on: push
jobs:
ci:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
device: [14, 15]
iOS: [17.4, 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: Setup Xcode
run: |
cd ./app
xcodebuild -downloadAllPlatforms
- name: Build
run: |
cd ./app
xcodebuild build -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}
- name: Test
run: |
cd ./app
xcodebuild test -scheme metro-now -project metro-now.xcodeproj -destination 'platform=iOS Simulator,name=iPhone ${{ matrix.device }},OS=${{ matrix.iOS }}' | xcpretty && exit ${PIPESTATUS[0]}