forked from MailCore/mailcore2
-
Notifications
You must be signed in to change notification settings - Fork 4
70 lines (61 loc) · 2.05 KB
/
pull-request-check.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
name: Pull Request Check
on: pull_request
defaults:
run:
shell: zsh -l {0} # Use zsh iwth login as default shell
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
Android:
name: "mailcore2 - Android"
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Select XCode 14.2
run: sudo xcode-select --switch /Applications/Xcode_14.2.app
- name: Install NDK
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "ndk;25.2.9519653"
- name: Install Swift Android Toolchain
run: wget https://github.com/readdle/swift-android-toolchain/releases/latest/download/swift-android.zip;
unzip swift-android.zip;
swift-android/bin/swift-android tools --update;
- name: Install Android Emulator
run: $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install "system-images;android-29;google_apis;x86_64"
- name: Run connected android tests
run: export ANDROID_NDK_ROOT_25C=$ANDROID_HOME/ndk/25.2.9519653;
export SWIFT_ANDROID_HOME_5_7=$(pwd)/swift-android;
./build-scripts/test-android.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - Android - Report
detailed_summary: true
include_passed: true
Darwin:
name: "mailcore2 - ${{ matrix.os }}"
runs-on: macos-latest
timeout-minutes: 60
strategy:
matrix:
os: [macOS, iOS]
include:
- os: macOS
os_lowercased: macos
- os: iOS
os_lowercased: ios
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run tests
run: ./build-scripts/test-${{ matrix.os_lowercased }}.sh
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: failure()
with:
report_paths: .build/reports/junit.xml
check_name: mailcore2 - ${{ matrix.os }} - Report
detailed_summary: true
include_passed: true