Fix link detection for stretched labels #1194
Workflow file for this run
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
name: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
spm: | |
name: "iOS ${{ matrix.sdk }}" | |
runs-on: macos-12 | |
strategy: | |
fail-fast: false # Don’t fail-fast so that we get all snapshot test changes | |
matrix: | |
include: | |
- sdk: "14.5" | |
destination: platform=iOS Simulator,OS=14.5,name=iPad (8th generation) | |
- sdk: "15.0" | |
destination: platform=iOS Simulator,OS=15.0,name=iPhone 8 | |
- sdk: "16.2" | |
destination: platform=iOS Simulator,OS=16.2,name=iPhone 8 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Read env | |
run: cat .github/workflows/env.properties >> $GITHUB_ENV | |
- name: Switch to Xcode ${{ env.xcode_version }} | |
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app | |
- name: Install xcodes | |
run: brew install aria2 xcodesorg/made/xcodes | |
- name: Install iOS ${{ matrix.sdk }} | |
run: sudo xcodes runtimes install "iOS ${{ matrix.sdk }}" | |
- name: Build & Test | |
run: | | |
xcodebuild -scheme "BlueprintUI-Package" -destination "${{ matrix.destination }}" build test | |
- name: Package snapshot changes | |
if: ${{ failure() }} | |
run: | | |
git ls-files -mo BlueprintUICommonControls/Tests/Sources/Resources/ReferenceImages | xargs tar -cvf snapshot_changes_${{ matrix.sdk }}.tar | |
- name: Archive snapshot changes | |
uses: actions/upload-artifact@v2 | |
if: ${{ failure() }} | |
with: | |
name: snapshot_changes_${{ matrix.sdk }} | |
path: snapshot_changes_${{ matrix.sdk }}.tar | |
cocoapods: | |
name: "CocoaPods" | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Read env | |
run: cat .github/workflows/env.properties >> $GITHUB_ENV | |
- name: Switch to Xcode ${{ env.xcode_version }} | |
run: sudo xcode-select -s /Applications/Xcode_${{ env.xcode_version }}.app | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ env.ruby_version }} | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- name: Pod Install | |
run: | | |
bundle exec pod install --project-directory=SampleApp/ | |
- name: Build & Test | |
run: | | |
xcodebuild -workspace SampleApp/SampleApp.xcworkspace -scheme "BlueprintUI-Unit-Tests" -destination "platform=iOS Simulator,OS=16.2,name=iPhone 8" |