-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
509822b
commit 10af46c
Showing
2 changed files
with
56 additions
and
1 deletion.
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,55 @@ | ||
name: Check PR | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
PROJECT_FILE: RFISO8601DateTime.xcodeproj | ||
PROJECT_SCHEME: RFISO8601DateTimeTests | ||
PODSPEC_FILE: RFISO8601DateTime.podspec | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-latest | ||
|
||
strategy: | ||
matrix: | ||
xcode: | ||
- destination: platform=iOS Simulator,OS=latest,name=iPhone 11 | ||
version : latest-stable | ||
# - destination: platform=iOS Simulator,OS=14.4,name=iPhone 11 | ||
# version: 12.4 | ||
# - destination: platform=iOS Simulator,OS=13.7,name=iPhone 11 | ||
# version: 11.7 | ||
# - destination: platform=iOS Simulator,OS=12.4,name=iPhone 7 | ||
# version: 10.3 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: ${{ matrix.xcode.version }} | ||
|
||
- name: Xcode Test | ||
uses: devbotsxyz/[email protected] | ||
with: | ||
project: ${{ env.PROJECT_FILE }} | ||
scheme: ${{ env.PROJECT_SCHEME }} | ||
configuration: Debug | ||
destination: ${{ matrix.xcode.destination }} | ||
|
||
- uses: codecov/codecov-action@v1 | ||
name: Determine code coverage with CodeCov | ||
|
||
- name: Sed new version in Podspec | ||
run: sed -i "" -e 's|<LIB_VERSION>|1.1.1|g' ${{ env.PODSPEC_FILE }} | ||
|
||
- name: Perform Cocoapod lib lint validation | ||
run: bundle exec pod lib lint --quick --allow-warnings |
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