Skip to content

Update swift.yml

Update swift.yml #10

Workflow file for this run

# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
name: Swift
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and test
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- name: List available Xcode versions
run: ls /Applications | grep Xcode
- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_16.0.app/Contents/Developer
- name: Show current version of Xcode
run: xcodebuild -version
- name: Run tests
run: xcodebuild test -scheme SwiftFood -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest'