Skip to content

Commit

Permalink
ci: Run CI on Xcode 15 and macOS 13 (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Oct 6, 2023
1 parent 400af9e commit c4998e6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
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
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

0 comments on commit c4998e6

Please sign in to comment.