Skip to content

Commit

Permalink
Trying to use iOS 14.4 on Xcode 15 runner
Browse files Browse the repository at this point in the history
  • Loading branch information
BobaFetters committed Oct 13, 2023
1 parent 3b74d31 commit 50c0b9a
Showing 1 changed file with 147 additions and 142 deletions.
289 changes: 147 additions & 142 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@ jobs:
./Derived/*
key: ${{ github.run_id }}-dependencies

run-swift-builds:
runs-on: macos-13
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- package: apollo-ios
- package: apollo-ios-codegen
- package: apollo-ios-pagination
name: Run swift build for SPM packages
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Run Swift Build
shell: bash
run: |
cd ${{ matrix.package }} && swift build
# run-swift-builds:
# runs-on: macos-13
# timeout-minutes: 15
# strategy:
# fail-fast: false
# matrix:
# include:
# - package: apollo-ios
# - package: apollo-ios-codegen
# - package: apollo-ios-pagination
# name: Run swift build for SPM packages
# steps:
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ env.XCODE_VERSION }}
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Run Swift Build
# shell: bash
# run: |
# cd ${{ matrix.package }} && swift build

build-and-unit-test:
runs-on: macos-13
Expand All @@ -62,24 +62,29 @@ jobs:
fail-fast: false
matrix:
include:
# macOS_current
- destination: platform=macOS,arch=x86_64
# iOS 14.4
- destination: platform=iOS Simulator,OS=14.4,name=iPhone 15
scheme: ApolloTests
test-plan: Apollo-CITestPlan
name: Apollo Unit Tests - macOS
run-js-tests: false
# Codegen CLI Test
- destination: platform=macOS,arch=x86_64
scheme: CodegenCLITests
test-plan: CodegenCLITestPlan
name: Codegen CLI Unit Tests - macOS
run-js-tests: false
# CodegenLib Test
- destination: platform=macOS,arch=x86_64
scheme: ApolloCodegenTests
test-plan: Apollo-Codegen-CITestPlan
name: Codegen Lib Unit Tests - macOS
run-js-tests: true
name: Apollo Unit Tests - iOS 14.4
# # macOS_current
# - destination: platform=macOS,arch=x86_64
# scheme: ApolloTests
# test-plan: Apollo-CITestPlan
# name: Apollo Unit Tests - macOS
# run-js-tests: false
# # Codegen CLI Test
# - destination: platform=macOS,arch=x86_64
# scheme: CodegenCLITests
# test-plan: CodegenCLITestPlan
# name: Codegen CLI Unit Tests - macOS
# run-js-tests: false
# # CodegenLib Test
# - destination: platform=macOS,arch=x86_64
# scheme: ApolloCodegenTests
# test-plan: Apollo-Codegen-CITestPlan
# name: Codegen Lib Unit Tests - macOS
# run-js-tests: true
name: ${{ matrix.name }}
steps:
- uses: maxim-lobanov/setup-xcode@v1
Expand Down Expand Up @@ -142,110 +147,110 @@ jobs:
path: |
TestResults/ResultBundle.zip
run-codegen-test-configurations:
runs-on: macos-13
timeout-minutes: 20
name: Codegen Test Configurations - macOS
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Test Codegen Configurations
shell: bash
run: |
./scripts/run-test-codegen-configurations.sh -t
# run-codegen-test-configurations:
# runs-on: macos-13
# timeout-minutes: 20
# name: Codegen Test Configurations - macOS
# steps:
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ env.XCODE_VERSION }}
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Test Codegen Configurations
# shell: bash
# run: |
# ./scripts/run-test-codegen-configurations.sh -t

run-cocoapods-integration-tests:
runs-on: macos-13
timeout-minutes: 20
name: Cocoapods Integration Tests - macOS
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Export ENV Variables
shell: bash
working-directory: apollo-ios
run: |
apollo_ios_sha=$(git rev-parse HEAD)
echo "APOLLO_IOS_SHA=$apollo_ios_sha" >> ${GITHUB_ENV}
- name: Run CocoaPods Integration Tests
id: run-cocoapods-integration-tests
uses: ./.github/actions/run-cocoapods-integration-tests
# run-cocoapods-integration-tests:
# runs-on: macos-13
# timeout-minutes: 20
# name: Cocoapods Integration Tests - macOS
# steps:
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ env.XCODE_VERSION }}
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Export ENV Variables
# shell: bash
# working-directory: apollo-ios
# run: |
# apollo_ios_sha=$(git rev-parse HEAD)
# echo "APOLLO_IOS_SHA=$apollo_ios_sha" >> ${GITHUB_ENV}
# - name: Run CocoaPods Integration Tests
# id: run-cocoapods-integration-tests
# uses: ./.github/actions/run-cocoapods-integration-tests

run-integration-tests:
runs-on: macos-13
needs: tuist-generation
timeout-minutes: 20
name: Apollo Integration Tests - macOS
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node 12.22.10
uses: actions/setup-node@v3
with:
node-version: 12.22.10
- name: Setup Upload Server
shell: bash
run: |
sudo chmod -R +rwx SimpleUploadServer
cd SimpleUploadServer && npm install && npm start &
- name: Setup Node 18.15.0
uses: actions/setup-node@v3
with:
node-version: 18.15.0
- name: Setup Subscription Server
shell: bash
run: |
sh ./scripts/install-apollo-server-docs-example-server.sh
cd ../docs-examples/apollo-server/v3/subscriptions-graphql-ws && npm start &
- name: Setup Star Wars Server
shell: bash
run: |
sh ./scripts/install-or-update-starwars-server.sh
cd ../starwars-server && npm start &
- name: Retrieve Build Cache
uses: actions/cache@v3
with:
path: |
./ApolloDev.xcodeproj
./ApolloDev.xcworkspace
./Derived/*
key: ${{ github.run_id }}-dependencies
fail-on-cache-miss: true
- name: Build and Test
uses: ./.github/actions/build-and-run-unit-tests
with:
destination: platform=macOS,arch=x86_64
scheme: ApolloServerIntegrationTests
test-plan: Apollo-IntegrationTestPlan
- name: Save xcodebuild logs
uses: actions/upload-artifact@v3
with:
name: macOS-Integration-logs
path: |
DerivedData/Logs/Build
- name: Save crash logs
uses: actions/upload-artifact@v3
with:
name: macOS-Integration-crashes
path: |
~/Library/Logs/DiagnosticReports
- name: Zip Result Bundle
shell: bash
working-directory: TestResults
run: |
zip -r ResultBundle.zip ResultBundle.xcresult
- name: Save test results
uses: actions/upload-artifact@v3
with:
name: macOS-Integration-results
path: |
TestResults/ResultBundle.zip
# run-integration-tests:
# runs-on: macos-13
# needs: tuist-generation
# timeout-minutes: 20
# name: Apollo Integration Tests - macOS
# steps:
# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: ${{ env.XCODE_VERSION }}
# - name: Checkout Repo
# uses: actions/checkout@v3
# - name: Setup Node 12.22.10
# uses: actions/setup-node@v3
# with:
# node-version: 12.22.10
# - name: Setup Upload Server
# shell: bash
# run: |
# sudo chmod -R +rwx SimpleUploadServer
# cd SimpleUploadServer && npm install && npm start &
# - name: Setup Node 18.15.0
# uses: actions/setup-node@v3
# with:
# node-version: 18.15.0
# - name: Setup Subscription Server
# shell: bash
# run: |
# sh ./scripts/install-apollo-server-docs-example-server.sh
# cd ../docs-examples/apollo-server/v3/subscriptions-graphql-ws && npm start &
# - name: Setup Star Wars Server
# shell: bash
# run: |
# sh ./scripts/install-or-update-starwars-server.sh
# cd ../starwars-server && npm start &
# - name: Retrieve Build Cache
# uses: actions/cache@v3
# with:
# path: |
# ./ApolloDev.xcodeproj
# ./ApolloDev.xcworkspace
# ./Derived/*
# key: ${{ github.run_id }}-dependencies
# fail-on-cache-miss: true
# - name: Build and Test
# uses: ./.github/actions/build-and-run-unit-tests
# with:
# destination: platform=macOS,arch=x86_64
# scheme: ApolloServerIntegrationTests
# test-plan: Apollo-IntegrationTestPlan
# - name: Save xcodebuild logs
# uses: actions/upload-artifact@v3
# with:
# name: macOS-Integration-logs
# path: |
# DerivedData/Logs/Build
# - name: Save crash logs
# uses: actions/upload-artifact@v3
# with:
# name: macOS-Integration-crashes
# path: |
# ~/Library/Logs/DiagnosticReports
# - name: Zip Result Bundle
# shell: bash
# working-directory: TestResults
# run: |
# zip -r ResultBundle.zip ResultBundle.xcresult
# - name: Save test results
# uses: actions/upload-artifact@v3
# with:
# name: macOS-Integration-results
# path: |
# TestResults/ResultBundle.zip

0 comments on commit 50c0b9a

Please sign in to comment.