Skip to content

Commit ad48be6

Browse files
AnthonyMDevgh-action-runner
authored andcommitted
Merge 2.0 into main branch (#780)
1 parent 1b2ebfc commit ad48be6

File tree

678 files changed

+36277
-40309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

678 files changed

+36277
-40309
lines changed

.github/PULL_REQUEST_TEMPLATE/pull-request-template-release.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@
1212
- [ ] Add tag of format `major.minor.patch` to GitHub.
1313
- [ ] Create a release on GitHub with the new tag, using the latest [`CHANGELOG.md`](https://github.com/apollographql/apollo-ios/blob/main/CHANGELOG.md) contents.
1414
- [ ] Attach CLI binary to the GitHub release. _Use the `make archive-cli-for-release` command which builds both Intel and ARM architectures, and creates the tar archive for you._
15-
- [ ] Run `pod trunk push Apollo.podspec` and `pod trunk push ApolloTestSupport.podspec` to publish to CocoaPods. _You will need write permissions for this, please contact one of the [maintainers](https://github.com/apollographql/apollo-ios/blob/main/README.md#maintainers) if you need access to do this._
1615
- [ ] Run "[Release New Version](https://github.com/apollographql/apollo-ios-xcframework/actions/workflows/release-new-version.yml)" workflow in `apollo-ios-xcframework`

.github/actions/run-cocoapods-integration-tests/action.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/run-tuist-generation/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ description: Installs and run Tuist to generate Xcode projects
33
runs:
44
using: "composite"
55
steps:
6+
- uses: jdx/mise-action@v2
67
- name: Run Tuist
78
shell: bash
8-
run: |
9-
./scripts/install-tuist.sh
10-
tuist generate
9+
run: tuist generate

.github/workflows/ci-tests-xcode-swift-6.yml

Lines changed: 0 additions & 181 deletions
This file was deleted.

.github/workflows/ci-tests.yml

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: "CI Tests (Xcode 15.4)"
1+
name: "CI Tests (Xcode 16.4)"
22

33
on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

77
env:
8-
XCODE_VERSION: "15.4"
8+
XCODE_VERSION: "16.4"
99

1010
jobs:
1111
changes:
@@ -40,7 +40,7 @@ jobs:
4040
- '.tuist-version'
4141
4242
tuist-generation:
43-
runs-on: macos-14
43+
runs-on: macos-latest
4444
needs: [changes]
4545
if: ${{ needs.changes.outputs.ios == 'true' || needs.changes.outputs.codegen == 'true' || needs.changes.outputs.pagination == 'true' || needs.changes.outputs.tuist == 'true' }}
4646
timeout-minutes: 8
@@ -63,7 +63,7 @@ jobs:
6363
key: ${{ github.run_id }}-dependencies
6464

6565
run-swift-builds:
66-
runs-on: macos-14
66+
runs-on: macos-latest
6767
timeout-minutes: 15
6868
strategy:
6969
fail-fast: false
@@ -85,7 +85,7 @@ jobs:
8585
cd ${{ matrix.package }} && swift build
8686
8787
build-and-unit-test:
88-
runs-on: macos-14
88+
runs-on: macos-latest
8989
needs: [tuist-generation, changes]
9090
timeout-minutes: 20
9191
strategy:
@@ -136,16 +136,6 @@ jobs:
136136
./Derived/*
137137
key: ${{ github.run_id }}-dependencies
138138
fail-on-cache-miss: true
139-
# Caching for apollo-ios and apollo-ios-codegen SPM dependencies
140-
# - uses: actions/cache@v3
141-
# with:
142-
# path: ./DerivedData/SourcePackages
143-
# key: ${{ runner.os }}-spm-${{ hashFiles('./apollo-ios/Package.resolved') }}-${{ hashFiles('./apollo-ios-codegen/Package.resolved') }}
144-
# - name: Run Tuist Generation
145-
# uses: tuist/[email protected]
146-
# with:
147-
# command: 'generate'
148-
# arguments: ''
149139
- name: Build and Test
150140
if: ${{ matrix.should-run == true || matrix.should-run == 'true' }}
151141
id: build-and-test
@@ -187,9 +177,8 @@ jobs:
187177
name: ${{ matrix.name }}-results
188178
path: |
189179
TestResults/ResultBundle.zip
190-
191180
run-codegen-test-configurations:
192-
runs-on: macos-14
181+
runs-on: macos-latest
193182
timeout-minutes: 20
194183
name: Codegen Test Configurations - macOS
195184
steps:
@@ -202,9 +191,9 @@ jobs:
202191
shell: bash
203192
run: |
204193
./scripts/run-test-codegen-configurations.sh -t
205-
194+
206195
verify-frontend-bundle-latest:
207-
runs-on: macos-14
196+
runs-on: macos-latest
208197
needs: [changes]
209198
if: ${{ needs.changes.outputs.codegen == 'true' }}
210199
timeout-minutes: 5
@@ -222,7 +211,7 @@ jobs:
222211
git diff --exit-code
223212
224213
verify-cli-binary-archive:
225-
runs-on: macos-14
214+
runs-on: macos-latest
226215
needs: [changes]
227216
if: ${{ needs.changes.outputs.codegen == 'true' }}
228217
timeout-minutes: 5
@@ -238,23 +227,3 @@ jobs:
238227
shell: bash
239228
working-directory: apollo-ios/scripts
240229
run: ./cli-version-check.sh
241-
242-
run-cocoapods-integration-tests:
243-
runs-on: macos-14
244-
timeout-minutes: 20
245-
name: Cocoapods Integration Tests - macOS
246-
steps:
247-
- uses: maxim-lobanov/setup-xcode@v1
248-
with:
249-
xcode-version: ${{ env.XCODE_VERSION }}
250-
- name: Checkout Repo
251-
uses: actions/checkout@v3
252-
- name: Export ENV Variables
253-
shell: bash
254-
working-directory: apollo-ios
255-
run: |
256-
apollo_ios_sha=$(git rev-parse HEAD)
257-
echo "APOLLO_IOS_SHA=$apollo_ios_sha" >> ${GITHUB_ENV}
258-
- name: Run CocoaPods Integration Tests
259-
id: run-cocoapods-integration-tests
260-
uses: ./.github/actions/run-cocoapods-integration-tests

.github/workflows/create-release-pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ env:
1313

1414
jobs:
1515
create-release-pr:
16-
runs-on: macos-latest
16+
runs-on: macos-15
1717
timeout-minutes: 5
1818
name: "Create Release PR"
1919
steps:
20+
- name: Set Xcode Version
21+
uses: maxim-lobanov/setup-xcode@v1
22+
with:
23+
xcode-version: latest-stable
2024
- name: Checkout Repo
2125
uses: actions/checkout@v4
2226
- name: Setup SSH Keys

.github/workflows/publish-release.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,3 @@ jobs:
8383
gh workflow run release-new-version.yml -f remoteRef=${{ env.RELEASE_VERSION }} --repo "apollographql/apollo-ios-xcframework"
8484
env:
8585
GH_TOKEN: ${{ secrets.APOLLO_IOS_PAT }}
86-
87-
# Push Pods for Apollo iOS and Test Support
88-
- name: Push Cocoapods
89-
shell: bash
90-
env:
91-
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
92-
run: |
93-
export COCOAPODS_VALIDATOR_SKIP_XCODEBUILD=true:$PATH
94-
gem install cocoapods
95-
set -eo pipefail
96-
cd apollo-ios
97-
pod trunk push Apollo.podspec --allow-warnings
98-
pod trunk push ApolloTestSupport.podspec --synchronous --allow-warnings

0 commit comments

Comments
 (0)