Skip to content

github action でUnit テストを回すための yaml 作成 #4

github action でUnit テストを回すための yaml 作成

github action でUnit テストを回すための yaml 作成 #4

Workflow file for this run

name: iOS starter workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "session/*" ]
jobs:
build:
name: testWorkflow
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: UnitTest
run: xcodebuild test -project ios-training-bjung.xcodeproj/ -scheme ios-training-bjung -resultBundlePath TestResults -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14"
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: TestResults.xcresult
if: success() || failure()