【发布时间】:2020-02-29 20:09:50
【问题描述】:
我有一个 Github Action 管道:
name: default
on: [push]
jobs:
build:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- name: CocoaPod Install
run: pod install
- name: Force xcode 11
run: sudo xcode-select -switch /Applications/Xcode_11.1.app
- name: Test
run: ./pipelines.sh test
- name: Save report
uses: actions/upload-artifact@v1
with:
name: test_report
path: ./Test
还有一个脚本Shell:
function test
{
xcodebuild \
-workspace MyApp.xcworkspace \
-scheme DEBUG\ -\ MyApp \
-destination 'platform=iOS Simulator,name=iPhone 11' \
test
}
我的问题是当我运行我的管道但测试失败时,管道被标记为通过,这是一个问题......
我也检查过 fastlane,失败的测试不会导致管道失败。
当测试未通过时,如何使我的管道失败?
【问题讨论】:
标签: xcode continuous-integration xctest xcodebuild github-actions