-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/main'
- Loading branch information
Showing
1 changed file
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,29 @@ | ||
# 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" ] | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ "main" ] | ||
branches: [ main ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
name: Build and test | ||
runs-on: macos-14 | ||
steps: | ||
- name: Select Xcode version | ||
run: sudo xcode-select -switch /Applications/Xcode_15.4.app/Contents/Developer | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: xcodebuild -scheme SwiftFood -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' clean build | ||
- name: Run Tests | ||
run: xcodebuild test -scheme SwiftFood -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14,OS=latest' | ||
- 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' |