-
Notifications
You must be signed in to change notification settings - Fork 5
81 lines (63 loc) · 2.05 KB
/
actions.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
on:
pull_request:
branches:
- 'develop'
jobs:
android-build-check-and-shared-tests:
name: Build android app and run shared tests.
runs-on: ubuntu-latest
env:
API_KEY_TMDB: ''
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17.0.5'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.4
- name: Build androidApp
run: gradle :androidApp:buildDebug
- name: Run unit tests
run: gradle :shared:testDebugUnitTest
ios-build-check:
name: Build iosApp
runs-on: macos-latest
env:
API_KEY_TMDB: ''
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '17.0.5'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.4
- name: Generate framework file
run: gradle :shared:generateDummyFramework
- name: Set up cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest
- name: Build xcworkspace
run: gradle podInstall
- name: Build iosApp
run: xcodebuild clean build -workspace iosApp/iosApp.xcworkspace -scheme iosApp -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.2' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
#- name: Run Ios tests
# run: bash xcodebuild test -workspace iosApp/iosApp.xcworkspace -scheme iosApp -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO