Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] #523

Merged
merged 14 commits into from
Feb 12, 2024

Conversation

robmaceachern
Copy link
Member

@robmaceachern robmaceachern commented Feb 11, 2024

For UI-5186

  • Reformat run_test.yml
  • Bump Xcode to 15.1. Update to M1 macs on CI. Add iOS 17 job.
  • Create .ruby-version
  • Bump gems
  • Bump swift-tools-version to 5.9 in Package.swift
  • Fix SPM build
  • Added matrix for iOS tests (modelled after Blueprint's approach)
    • DRY'd the jobs.
    • Note: I can back these changes out if desired, but it was getting a bit messy.
  • Remove old test scripts
  • Dropped iOS 14 test job.

Checklist

Please do the following before merging:

  • Ensure any public-facing changes are reflected in the changelog. Include them in the Main section.
  • Update Github repo required checks settings (@kyleve you may have to do this for me)


- name: Checkout repository
uses: actions/checkout@v1
run: xcodebuild -scheme "Listable-Package" -destination "platform=iOS Simulator,OS=17.2" -sdk iphonesimulator build
Copy link
Member Author

Choose a reason for hiding this comment

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

I was experiencing errors locally and on CI using the old build command on Xcode 15 so I migrated to xcodebuild and it seems to be working as expected.

Screenshot 2024-02-12 at 9 26 43 AM

Comment on lines +61 to +62
- name: Setup Ruby
uses: ruby/setup-ruby@v1
Copy link
Member Author

Choose a reason for hiding this comment

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

Migrated to the setup-ruby action which simplifies some of the Bundler stuff (and ensures we're using the ruby version specified in .ruby-version.

Comment on lines +90 to +92
- name: Build & Test
run: |
xcodebuild -workspace Demo/Demo.xcworkspace -scheme "Demo" -destination "platform=iOS Simulator,OS=${{ matrix.sdk }},name=${{ matrix.simulator_name }}" build test
Copy link
Member Author

Choose a reason for hiding this comment

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

Rather than per-iOS-version test scripts, we just have a single parameterized xcodebuild command.

@@ -45,7 +45,7 @@ let package = Package(
.process("Resources"),
]
),
.testTarget(
.target(
Copy link
Member Author

Choose a reason for hiding this comment

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

Xcode was complaining about the SnapshotTests and ListableUITests targets depending on a test target, so I just made it a target 🤷🏽

Screenshot 2024-02-12 at 9 00 32 AM

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't see this referenced anywhere so I killed it, but if it's part of your workflow I can re-create it.

@robmaceachern robmaceachern marked this pull request as ready for review February 12, 2024 16:50
Copy link
Collaborator

@kyleve kyleve left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this all up!

@kyleve
Copy link
Collaborator

kyleve commented Feb 12, 2024

Updated the branch protection rules, feel free to merge whenever!

@robmaceachern robmaceachern merged commit a774771 into main Feb 12, 2024
4 checks passed
@robmaceachern robmaceachern deleted the robmaceachern/xcode-15-bump branch February 12, 2024 19:21
kyleve added a commit that referenced this pull request Aug 1, 2024
* origin/main:
  Prepare 14.3.0 (#540)
  Custom Update Animations (#539)
  Update version to 14.2.0
  Prepare 14.2.0 release, which contains a Blueprint update
  Bumping versions to 14.1.0 (#535)
  reorder control now proxies accessibility into a seperate element (#533)
  Prepare 14.0.3
  Fix a crash that could occur during cell reuse if a list contained different types of headers. The wrong ObjectIdentifier was being compared and stored.
  Get a repro for the reordering crash reported in #market-ios
  chore: Generated documentation now uses a static copyright notice to avoid noisy diffs (#530)
  Bumping versions to 15.0.2
  fix: Fix tap gesture swallowing touches in swipe actions view
  Bump to 14.0.1
  Fix SPM Blueprint dependency
  Release 14.0.0, update BlueprintUI to 3.0.0 (#525)
  chore: iOS 15 deployment target bump [UI-5187] (#524)
  chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] (#523)
  fix: don't cancel touches in view for tap gesture recognizer
  Revert weak change
  Revert "Revert "Supplementary Tracking Fixes (#433)""
kyleve added a commit that referenced this pull request Aug 6, 2024
…rovements

* origin/main: (33 commits)
  Prepare 14.3.0 (#540)
  Custom Update Animations (#539)
  Update version to 14.2.0
  Prepare 14.2.0 release, which contains a Blueprint update
  Bumping versions to 14.1.0 (#535)
  reorder control now proxies accessibility into a seperate element (#533)
  Prepare 14.0.3
  Fix a crash that could occur during cell reuse if a list contained different types of headers. The wrong ObjectIdentifier was being compared and stored.
  Get a repro for the reordering crash reported in #market-ios
  chore: Generated documentation now uses a static copyright notice to avoid noisy diffs (#530)
  Bumping versions to 15.0.2
  fix: Fix tap gesture swallowing touches in swipe actions view
  Bump to 14.0.1
  Fix SPM Blueprint dependency
  Release 14.0.0, update BlueprintUI to 3.0.0 (#525)
  chore: iOS 15 deployment target bump [UI-5187] (#524)
  chore: Bump CI to Xcode 15.1. Bump gems. [UI-5186] (#523)
  fix: don't cancel touches in view for tap gesture recognizer
  fix: don't cancel touches in view for tap gesture recognizer
  Revert weak change
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants