-
Notifications
You must be signed in to change notification settings - Fork 235
67 lines (65 loc) · 1.82 KB
/
ios.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: iOS CI
on:
push:
branches: [ develop, release ]
pull_request:
jobs:
lint:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: ./.github/prepare-workflow
- name: Run lint
run: swiftlint --reporter "emoji"
build:
runs-on: macos-latest
strategy:
matrix:
name:
- "iPhone 12"
- "iPad Pro (9.7-inch)"
os-version:
- "16.2"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: ./.github/prepare-workflow
- name: Build
run: xcodebuild build -scheme Habitica -destination "platform=iOS Simulator,name=${{ matrix.name }},OS=${{ matrix.os-version }}"
unit-tests:
runs-on: macos-latest
strategy:
matrix:
name:
- "iPhone 12"
- "iPad Pro (9.7-inch)"
os-version:
- "16.2"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: ./.github/prepare-workflow
- name: Build
run: xcodebuild clean test -scheme 'Habitica' -destination 'platform=iOS Simulator,name=${{ matrix.name }},OS=${{ matrix.os-version }}' -testPlan "Unit Tests" -showBuildTimingSummary
ui-tests:
runs-on: macos-latest
strategy:
matrix:
name:
- "iPhone 8"
- "iPhone 11"
- "iPhone 13 Pro Max"
- "iPad Pro (9.7-inch)"
os-version:
- "16.2"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
run: ./.github/prepare-workflow
- name: Build
run: xcodebuild clean test -scheme 'Habitica' -destination 'platform=iOS Simulator,name=${{ matrix.name }},OS=${{ matrix.os-version }}' -testPlan "UI Tests" -showBuildTimingSummary