-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 884 Bytes
/
swift.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
name: Swift
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Build
run: |
./gradlew common:build --console plain
cd native/KotlinIOS
xcodebuild \
-project KotlinIOS.xcodeproj \
-scheme KotlinIOS \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=latest'
- name: Run tests
run: |
./gradlew common:build --console plain
cd native/KotlinIOS
xcodebuild \
-project KotlinIOS.xcodeproj \
-scheme KotlinIOS \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro Max,OS=latest' \
test | xcpretty --test --color