Skip to content

Commit

Permalink
Updated Github Actions to macos 13
Browse files Browse the repository at this point in the history
  • Loading branch information
brototyp committed Jul 1, 2023
1 parent 2d59a41 commit 3a6513a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Run Danger

on:
pull_request:
Expand Down
35 changes: 19 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Run Tests

on:
pull_request:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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"
Expand Down

0 comments on commit 3a6513a

Please sign in to comment.