-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (36 loc) · 1.13 KB
/
ui.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
name: Run UI Test Cases
on:
pull_request:
branches:
- develop
- swift-migration
- main
- feature/*
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
ui-tests:
name: Run iOS UI Tests
runs-on: macOS-14
env:
DEVELOPER_DIR: "/Applications/Xcode_15.3.app/Contents/Developer"
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Reset Simulators
run: xcrun simctl erase all
- name: "Run UI Tests"
run: |
set -o pipefail
xcodebuild -workspace "attentive-ios-sdk.xcworkspace" -scheme "CreativeUITest" -destination "platform=iOS Simulator,OS=17.4,name=iPhone 15 Pro" -derivedDataPath build/ -resultBundlePath ui-test-results.xcresult test | xcpretty
- name: Compress UI Test Results
if: failure()
run: tar -czf ui-test-results.xcresult.tar.gz ui-test-results.xcresult
- name: Upload UI Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: ui-test-results
path: ui-test-results.xcresult.tar.gz