Rename snapshots (#4756)
* renaming snapshots so that it's easier to diff them when an upgrade happens. * fix macOS runner version for the compound tests * os version update in the yml * possible fix to run compound-ios tests
This commit is contained in:
17
.github/workflows/compound-ios.yml
vendored
17
.github/workflows/compound-ios.yml
vendored
@@ -4,17 +4,22 @@
|
||||
name: Compound
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
push:
|
||||
branches: [ develop ]
|
||||
paths: [ 'compound-ios/**' ]
|
||||
paths:
|
||||
- 'compound-ios/**'
|
||||
|
||||
pull_request:
|
||||
paths: [ 'compound-ios/**' ]
|
||||
types: [opened, synchronize, reopened]
|
||||
paths:
|
||||
- 'compound-ios/**'
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
|
||||
runs-on: macos-15
|
||||
runs-on: macos-26
|
||||
timeout-minutes: 15
|
||||
|
||||
concurrency:
|
||||
@@ -27,7 +32,7 @@ jobs:
|
||||
- uses: nschloe/action-cached-lfs-checkout@f46300cd8952454b9f0a21a3d133d4bd5684cfc2 #v1.2.3
|
||||
|
||||
- name: Configure Xcode 26
|
||||
run: sudo xcode-select -s /Applications/Xcode_26.0.app
|
||||
run: sudo xcode-select -s /Applications/Xcode_26.1_Release_Candidate.app
|
||||
|
||||
- name: Install sourcery
|
||||
run: brew install sourcery
|
||||
@@ -37,11 +42,11 @@ jobs:
|
||||
run: sourcery --config Tools/Sourcery/PreviewTestsConfig.yml
|
||||
|
||||
- name: Create simulator
|
||||
run: xcrun simctl create "Snapshots" "iPhone SE (3rd generation)" "com.apple.CoreSimulator.SimRuntime.iOS-26-0"
|
||||
run: xcrun simctl create "Snapshots" "iPhone SE (3rd generation)" "com.apple.CoreSimulator.SimRuntime.iOS-26-1"
|
||||
|
||||
- name: Run tests
|
||||
working-directory: compound-ios
|
||||
run: set -o pipefail && xcodebuild test -scheme 'Compound' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=Snapshots,OS=26.0.1' -skipPackagePluginValidation -resultBundlePath Logs/CompoundTests.xcresult | xcbeautify --renderer github-actions
|
||||
run: set -o pipefail && xcodebuild test -scheme 'Compound' -sdk iphonesimulator -destination 'platform=iOS Simulator,name=Snapshots,OS=26.1' -skipPackagePluginValidation -resultBundlePath Logs/CompoundTests.xcresult | xcbeautify --renderer github-actions
|
||||
|
||||
- name: Zip artifacts
|
||||
if: failure() # We only care about artefacts if the tests fail
|
||||
|
||||
Reference in New Issue
Block a user