Skip to content

Commit

Permalink
added job for running ui test
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Espinola committed Jun 5, 2024
1 parent a525f46 commit 05683c2
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Run UI Test Cases

on:
pull_request:
branches:
- develop
- swift-migration
- main
- feature/*

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

0 comments on commit 05683c2

Please sign in to comment.