Merge pull request #5 from cookpad/ln/cocoapods #18
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: | |
branches: | |
- main | |
jobs: | |
run-tests: | |
name: Xcode ${{ matrix.xcode }} | |
strategy: | |
fail-fast: false | |
matrix: | |
xcode: | |
- "15.2" | |
- "14.3.1" | |
- "14.1" | |
include: | |
- xcode: "15.2" | |
macos: macOS-13 | |
destination: "platform=iOS Simulator,name=iPhone 14,OS=17.2" | |
- xcode: "14.3.1" | |
macos: macOS-13 | |
destination: "platform=iOS Simulator,name=iPhone 14,OS=16.4" | |
- xcode: "14.1" | |
macos: macOS-12 | |
destination: "platform=iOS Simulator,name=iPhone 14,OS=16.1" | |
runs-on: ${{ matrix.macos }} | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Run Tests | |
run: xcodebuild clean test -scheme TwitterImagePipeline-Package -destination '${{ matrix.destination }}' | |
cocoapods: | |
name: CocoaPods | |
runs-on: macOS-13 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Validate the Pod | |
run: pod lib lint TwitterImagePipeline.podspec --allow-warnings |