-
Notifications
You must be signed in to change notification settings - Fork 39
73 lines (60 loc) · 1.85 KB
/
pull_request.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
name: Pull Request
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cocoapods cache
uses: actions/cache@v3
id: cocoapods-cache
with:
path: |
~/.cocoapods
~/Library/Caches/CocoaPods
*/build/cocoapods
*/build/classes
key: cocoapods-cache
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
cache: gradle
- name: Gradle cache
uses: gradle/gradle-build-action@v2
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run Kotlin linter
run: ./gradlew ktlintCheck
- name: Run Android instrumented tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
target: google_apis
arch: x86_64
profile: Nexus 6
script: ./gradlew webrtc-kmp:connectedAndroidTest
- name: Upload Android test artifact
uses: actions/upload-artifact@v2
if: failure()
with:
name: "Android Instrumented Tests Report HTML"
path: "webrtc-kmp/build/reports/androidTests/connected"
- name: Run iOS tests
run: ./gradlew cleanTest webrtc-kmp:iosX64Test
- name: Upload iOS test artifact
uses: actions/upload-artifact@v2
if: failure()
with:
name: "iOS Tests Report HTML"
path: "webrtc-kmp/build/reports/tests/iosX64Test"
- name: Run JS tests
run: ./gradlew cleanTest webrtc-kmp:jsTest
- name: Upload JS test artifact
uses: actions/upload-artifact@v2
if: failure()
with:
name: "JS Tests Report HTML"
path: "webrtc-kmp/build/reports/tests/jsTest"