Skip to content

fix bugs (#17)

fix bugs (#17) #56

Workflow file for this run

name: Unit Tests
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
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v3
- run: sudo xcode-select --switch /Applications/Xcode_$XCODE_VERSION.app
- name: Run tests
run: xcodebuild test -project $PROJECT_NAME.xcodeproj -scheme $PROJECT_NAME -destination 'platform=iOS Simulator,name=${{ env.SIMULATOR }}' -skipMacroValidation -resultBundlePath TestResults
- uses: kishikawakatsumi/xcresulttool@v1
with:
path: TestResults.xcresult
show-passed-tests: false
if: success() || failure()