-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: xcode15 stable instead of beta (#387)
- Loading branch information
1 parent
5adafee
commit fcbf04e
Showing
5 changed files
with
21 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Setup iOS | ||
description: Setup CI with iOS development tools to compile and test iOS source code. | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install XCode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,28 +6,16 @@ concurrency: # cancel previous workflow run if one exists. | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
# Thanks, https://swiftpackageindex.com/docs/builds for help coming up with *how* we build the artifacts. Swift build on Linux, XCode build on mac. Changing the XCode version to a specific version is how to set what version of Swift we want to test against on macOS. This is more real-world but also because I encountered issues with trying to install a Swift version in the macOS environment and try to run tests on it. | ||
# See example commands by choosing a package: https://swiftpackageindex.com/nativedevbr/swift-log/builds and viewing the build information for each environment to see the commands run in that environment. | ||
|
||
jobs: | ||
xcode-test: | ||
strategy: | ||
matrix: | ||
# 13.3 = swift 5.6 | ||
# Thanks: https://swiftly.dev/swift-versions, https://xcodereleases.com/, https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md#xcode | ||
xcode: ["14.3"] | ||
automated-tests: | ||
runs-on: macos-13 | ||
name: XCode macOS tests (xcode ${{ matrix.xcode }}) | ||
permissions: | ||
checks: write # Need write permission to add test result check. | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up XCode | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcode }} | ||
- uses: ./.github/actions/setup-ios | ||
# If running tests fails, sometimes it's because of scheme name is wrong. This gives us all available schemes. | ||
- name: Get XCode schemes (xcode ${{ matrix.xcode }}) | ||
- name: Get XCode schemes | ||
run: xcrun xcodebuild -list | ||
|
||
- name: Setup Ruby to run Fastlane | ||
|
@@ -36,7 +24,7 @@ jobs: | |
ruby-version: '3.0' | ||
bundler-cache: true # install dependencies in Gemfile, including Fastlane. | ||
|
||
- name: Run tests (xcode ${{ matrix.xcode }}) | ||
- name: Run tests | ||
uses: maierj/[email protected] | ||
with: | ||
lane: 'scan' | ||
|
@@ -64,7 +52,7 @@ jobs: | |
- name: Publish test results | ||
uses: mikepenz/action-junit-report@v4 | ||
with: | ||
check_name: XCode macOS tests (xcode ${{ matrix.xcode }}) - Results | ||
check_name: XCode macOS tests - Results | ||
report_paths: test-report.xml | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
fail_on_failure: true | ||
|