-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (52 loc) · 1.71 KB
/
ci.yml
File metadata and controls
64 lines (52 loc) · 1.71 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
63
64
name: CI
on: [pull_request]
env:
BUNDLE_PATH: vendor/bundle
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
android:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Build and Test SDK
run: |
cd android
bash ./gradlew assembleDebug testDebugUnitTest --info --stacktrace
cd -
- name: publish unit test reports
if: always()
uses: mikepenz/action-junit-report@a6502270b81b22b7cf745720fcf00edf7d31dc04
with:
check_name: 'Unit test reports'
github_token: ${{ github.token }}
report_paths: '**/build/test-results/**/TEST-*.xml'
fail_on_failure: true
ios:
runs-on: macos-15-xlarge
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Install Coreutils
run: brew install coreutils
- name: Build SDK
run: |
cd ios
xcodebuild \
-project AirshipFrameworkProxy.xcodeproj \
-scheme AirshipFrameworkProxy \
-destination 'platform=iOS Simulator,OS=18.4,name=iPhone 16 Pro Max' \
clean test | xcbeautify --renderer github-actions
- name: Pod lint
run: |
exec pod lib lint AirshipFrameworkProxy.podspec --verbose --platforms=ios --allow-warnings