Skip to content

Update unit_test.yml #9

Update unit_test.yml

Update unit_test.yml #9

Workflow file for this run

name: iOS starter workflow
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
XCODE_VERSION: 15.0.1
PROJECT_NAME: FoodSpec
SIMULATOR: iPhone 15 Pro
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- run: xcode-select --switch /Applications/Xcode_$XCODE_VERSION.app
- name: Run tests
run: xcodebuild test \
-scheme $PROJECT_NAME \
-project $PROJECT_NAME.xcodeproj \
-destination 'platform=iOS Simulator,name=${{ env.SIMULATOR }}' \
-resultBundlePath TestResults
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: TestResults.xcresult
if: success() || failure()