Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/swift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
pull_request:

env:
XCODE_VERSION: 16.1.0
XCODE_VERSION: 16.4.0
TUIST_TEST_DEVICE: iPad (10th generation)
TUIST_TEST_PLATFORM: iOS

Expand All @@ -30,10 +30,10 @@

- sdk: "17.5"
simctl_runtime: "com.apple.CoreSimulator.SimRuntime.iOS-17-5"
installation_required: false
installation_required: true

- sdk: "18.1"
simctl_runtime: "com.apple.CoreSimulator.SimRuntime.iOS-18-1"
- sdk: "18.5"
simctl_runtime: "com.apple.CoreSimulator.SimRuntime.iOS-18-5"
installation_required: false

steps:
Expand Down Expand Up @@ -65,7 +65,7 @@
runs-on: macos-latest

env:
TUIST_TEST_OS: 18.1
TUIST_TEST_OS: 18.5
TUIST_TEST_SCHEME: SnapshotTests

strategy:
Expand All @@ -85,20 +85,20 @@
run: tuist test --path Samples

package-tests:
runs-on: macos-latest
runs-on: macos-14

steps:
- uses: actions/checkout@v4

- name: Switch Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
run: sudo xcode-select -s /Applications/Xcode_16.1.app
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we pinning this for now again? some test fails on newer macos?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes the WorkflowSwiftUI tests fail and I asked Andrew about it and he suggested using the previous MacOS version until he could look at it.
https://square.slack.com/archives/CBZJ5V163/p1755551704949979

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The image for MacOS 14 doesn't have Xcode 16.4 so that's why I had to hard code this.


# Command line swift runs on the host platform.
# On macOS we can run all tests, including macro tests.
- name: Test macOS
run: swift test

tutorial:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: macos-latest

steps:
Expand Down
Loading