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

ci: Run CI on Xcode 15 and macOS 13 #1753

Merged
merged 4 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
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
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- "**"
env:
CI_XCODE_14: /Applications/Xcode_14.2.app/Contents/Developer
CI_XCODE_15: /Applications/Xcode_15.0.app/Contents/Developer
jobs:
tests:
env:
Expand All @@ -24,8 +25,9 @@ jobs:
- test:parseui:all
- test:parse_live_query:all
- build:starters
fail-fast: true
runs-on: macos-12
- xcode15 # runs build:starters on XCode 15
fail-fast: false
mtrezza marked this conversation as resolved.
Show resolved Hide resolved
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
Expand Down Expand Up @@ -65,9 +67,9 @@ jobs:
run: |
carthage bootstrap --use-xcframeworks
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake ${{ matrix.script }}
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake ${{ matrix.script == 'xcode15' && 'build:starters' || matrix.script }}
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_14 }}
DEVELOPER_DIR: ${{ (matrix.script == 'xcode15' && env.CI_XCODE_15) || env.CI_XCODE_14 }}
- name: Generate Environment Variables
if: ${{ always() }}
env:
Expand Down Expand Up @@ -96,7 +98,7 @@ jobs:
xcode: true
xcode_archive_path: ${{ env.TEST_RESULTS }}
docs:
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Setup Ruby
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-automated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
release:
runs-on: macos-12
runs-on: macos-13
outputs:
current_tag: ${{ steps.tag.outputs.current_tag }}
steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
publish-docs:
needs: release
if: needs.release.outputs.current_tag != ''
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-manual-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
jobs:
publish-docs:
if: github.event.inputs.tag != ''
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ - (void)testConstructors {
provider = [PFTwitterAuthenticationProvider providerWithTwitter:twitter];
XCTAssertNotNil(provider);
XCTAssertEqual(provider.twitter, twitter);

PFAssertThrowsInconsistencyException([PFTwitterAuthenticationProvider new]);
}

- (void)testAuthData {
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ namespace :build do

desc 'Build all starters'
task :starters do
Rake::Task['build:ios_starters:all'].invoke
Rake::Task['build:macos_starters:all'].invoke
Rake::Task['build:tvos_starters:all'].invoke
Rake::Task['build:watchos_starters:all'].invoke
Rake::Task['build:ios_starters:all'].invoke
Rake::Task['build:macos_starters:all'].invoke
end
end

Expand Down
Loading