Skip to content

Commit

Permalink
updated command to force failure if an ui test case fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Espinola committed May 23, 2024
1 parent 2ee1dba commit fae2567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: "Run UI Tests"
run: 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
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
run: tar -czf ui-test-results.xcresult.tar.gz ui-test-results.xcresult
- name: Upload UI Test Results
Expand Down

0 comments on commit fae2567

Please sign in to comment.