-
-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (40 loc) · 1.18 KB
/
ci.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
name: OTPKitTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Switch Xcode 15
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app
- name: Install xcodegen
run: brew install xcodegen
- name: Generate xcodeproj for OTPKit
run: xcodegen
# Build
- name: Build OneBusAway
run: xcodebuild clean build-for-testing
-scheme 'OTPKitDemo'
-destination 'platform=iOS Simulator,name=iPhone 15'
-quiet
# Unit Test
- name: OBAKit Unit Test
run: xcodebuild test-without-building
-only-testing:OTPKitTests
-project 'OTPKit.xcodeproj'
-scheme 'OTPKitDemo'
-destination 'platform=iOS Simulator,name=iPhone 15'
-resultBundlePath OTPKitTests.xcresult
-quiet
# Upload results
- uses: kishikawakatsumi/[email protected]
continue-on-error: true
with:
show-passed-tests: false # Avoid truncation of annotations by GitHub by omitting succeeding tests.
path: |
OTPKitTests.xcresult
if: success() || failure()