From 3a6513a728e8687f691d07fc7011159fc6a33fae Mon Sep 17 00:00:00 2001 From: Cornelius Horstmann Date: Sat, 1 Jul 2023 16:01:28 +0200 Subject: [PATCH] Updated Github Actions to macos 13 --- .github/workflows/danger.yml | 2 +- .github/workflows/test.yml | 35 +++++++++++++++++++---------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index 6afa0f4e..cbd245f8 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -1,4 +1,4 @@ -name: CI +name: Run Danger on: pull_request: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 07eca2be..6c248637 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: CI +name: Run Tests on: pull_request: @@ -7,16 +7,16 @@ on: jobs: tests-ios: - runs-on: macos-11 + runs-on: macos-13 strategy: matrix: - include: # selection of https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#installed-sdks - - xcode: "13.2.1" - ios: "15.2" - device: "iPhone 8" - - xcode: "12.5.1" - ios: "14.5" + include: # selection of https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#installed-sdks + - xcode: "14.3.1" + ios: "16.4" device: "iPhone 8" + # - xcode: "12.5.1" + # ios: "14.5" + # device: "iPhone 8" if: github.event_name == 'pull_request' # if only run pull request when multiple trigger workflow name: "test ios ${{matrix.ios}}" steps: @@ -32,19 +32,22 @@ jobs: - name: Run Unit Tests on ${{matrix.ios}} ${{matrix.device}} run: xcodebuild -workspace MatomoTracker.xcworkspace -scheme 'MatomoTracker' -sdk 'iphonesimulator' -destination 'platform=iOS Simulator,name=${{matrix.device}},OS=${{matrix.ios}}' -configuration Debug clean test tests-demo-builds: - runs-on: macos-11 + runs-on: macos-13 strategy: matrix: include: - scheme: "ios" sdk: "iphonesimulator" - destination: "platform=iOS Simulator,name=iPhone 8,OS=15.2" + destination: "platform=iOS Simulator,name=iPhone 8,OS=16.4" + xcode: "14.3.1" - scheme: "macos" sdk: "macosx" destination: "platform=macOS,arch=x86_64" + xcode: "14.3.1" - scheme: "tvos" sdk: "appletvsimulator" - destination: "platform=tvOS Simulator,name=Apple TV,OS=15.2" + destination: "platform=tvOS Simulator,name=Apple TV,OS=16.4" + xcode: "14.3.1" if: github.event_name == 'pull_request' # if only run pull request when multiple trigger workflow name: "test demo build ${{matrix.scheme}}" steps: @@ -55,16 +58,16 @@ jobs: bundler-cache: true - name: pod install run: pod install || pod install --repo-update - - name: "Select Xcode 13.2.1" - run: sudo xcode-select -switch /Applications/Xcode_13.2.1.app && /usr/bin/xcodebuild -version + - name: "Select Xcode ${{matrix.xcode}}" + run: sudo xcode-select -switch /Applications/Xcode_${{matrix.xcode}}.app && /usr/bin/xcodebuild -version - name: Build Demo for ${{matrix.scheme}} run: xcodebuild -workspace MatomoTracker.xcworkspace -scheme '${{matrix.scheme}}' -sdk '${{matrix.sdk}}' -destination '${{matrix.destination}}' -configuration Release clean build tests-package-managers: - runs-on: macos-11 + runs-on: macos-13 steps: - uses: actions/checkout@v3 - - name: "Select Xcode 11.7" - run: sudo xcode-select -switch /Applications/Xcode_13.2.1.app && /usr/bin/xcodebuild -version + - name: "Select Xcode 14.3.1" + run: sudo xcode-select -switch /Applications/Xcode_14.3.1.app && /usr/bin/xcodebuild -version # Carthage doesn't work well with Matomo anymore # https://github.com/Carthage/Carthage/issues/3146 # - name: "Build Carthage"