-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.44 KB
/
Copy pathci.yml
File metadata and controls
62 lines (53 loc) · 1.44 KB
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
# https://github.com/actions/virtual-environments/
# A template workflow intended for Apple Platform libraries
name: CI
on:
push:
branches:
[master, refactor]
paths:
- '.github/workflows/ci.yml'
- 'Sources/**/*.*'
- 'Tests/**/*.*'
- 'Example/**/*.*'
pull_request:
branches:
[master]
paths:
- '.github/workflows/ci.yml'
- 'Sources/**/*.*'
- 'Tests/**/*.*'
- 'Example/**/*.*'
env:
PROJECT: TwitchAPIWrapper.xcodeproj
SCHEME: TwitchAPIWrapper
EXAMPLE_PROJECT: Example/TwitchAPIWrapper.xcworkspace
EXAMPLE_SCHEME: TwitchAPIWrapper-Example
IOS_DEST: "platform=iOS Simulator,name=iPhone 12,OS=14.5"
IOS_SDK: iphonesimulator14.4
jobs:
env-details:
name: Environment details
runs-on: macOS-latest
steps:
- name: xcode version
run: xcodebuild -version -sdk
- name: list simulators
run: |
xcrun simctl delete unavailable
xcrun simctl list
test-example:
name: Example Project Test
runs-on: macOS-latest
steps:
- name: git checkout
uses: actions/checkout@v2
- name: example tests
run: |
set -o pipefail
xcodebuild clean test \
-workspace "$EXAMPLE_PROJECT" \
-scheme "$EXAMPLE_SCHEME" \
-sdk "$IOS_SDK" \
-destination "$IOS_DEST" \
ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -c