-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (40 loc) · 1.27 KB
/
test.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
name: Build and Test
on:
pull_request_target:
permissions:
checks: write
jobs:
build-test:
runs-on: macOS-12
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- run: |
bundle install
bundle exec pod install
env:
RIAM_CONFIG_URL: https://example.com
RIAM_APP_SUBSCRIPTION_KEY: xxxx-xxxx-xxxx-xxxx
- run: |
xcodebuild \
-workspace RInAppMessaging.xcworkspace \
-scheme UITests \
-resultBundlePath artifacts/ui-tests/UITests \
-destination "platform=iOS Simulator,name=iPhone 11" \
test | xcpretty
xcodebuild \
-workspace RInAppMessaging.xcworkspace \
-scheme RInAppMessaging-Example \
-resultBundlePath artifacts/unit-tests/RInAppMessaging-Example \
-destination "platform=iOS Simulator,name=iPhone 11" \
test | xcpretty
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: |
artifacts/unit-tests/RInAppMessaging-Example.xcresult
artifacts/ui-tests/UITests.xcresult
upload-bundles: false
if: success() || failure()
# ^ This is important because the action will be run
# even if the test fails in the previous step.