diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..f8cdff49 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,47 @@ +--- +name: CI + +on: + push: + branches: + - master + - 'releases/*' + pull_request: + branches: + - master + +jobs: + build: + name: Build + runs-on: macOS-latest + strategy: + matrix: + platform: ['iOS Simulator,name=iPhone 8'] + steps: + - uses: actions/checkout@v1 + - name: Analyze and Test + run: | + xcodebuild clean analyze test \ + -destination "platform=${{ matrix.platform }}" \ + -sdk "iphonesimulator" \ + -project PINCache.xcodeproj \ + -scheme PINCache \ + ONLY_ACTIVE_ARCH=NO \ + CODE_SIGNING_REQUIRED=NO \ + | xcpretty + cocoapods: + name: CocoaPods + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: Lint + run: pod lib lint + carthage: + name: Carthage + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: Update + run: carthage update --no-use-binaries --no-build + - name: Build + run: carthage build --no-skip-current diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ef93752c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: objective-c -osx_image: xcode7.3 -cache: - - bundler - - cocoapods -branches: - only: - - master -before_install: - - gem install cocoapods -v '0.39.0' -before_script: - - pod lib lint --verbose -env: - matrix: - - OS='8.4' name='iPhone 6' - - OS='latest' name='iPhone 6' -script: - - xcodebuild clean test -project tests/PINCache.xcodeproj -scheme PINCacheTests -sdk iphonesimulator -destination "platform=iOS Simulator,name=$name,OS=$OS" ONLY_ACTIVE_ARCH=NO diff --git a/CHANGELOG.md b/CHANGELOG.md index 93a43ed2..cee44797 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * Add your own contributions to the next release on the line below this with your name. - [performance] Optimize `PINMemoryCache` remove objects when receive memory warning notification. [#251](https://github.com/pinterest/PINCache/pull/251) +- [new] Migrated to GitHub Actions for continuous integration. [#259](https://github.com/pinterest/PINCache/pull/259) ## 3.0.1 -- Beta 8 - [fix] Initing PINCache with TTL enabled should enable TTL on PINMemoryCache. [#246](https://github.com/pinterest/PINCache/pull/246) diff --git a/Makefile b/Makefile index ccc365f6..30b505cd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PLATFORM="platform=iOS Simulator,name=iPhone 7" +PLATFORM="platform=iOS Simulator,name=iPhone 8" SDK="iphonesimulator" SHELL=/bin/bash -o pipefail @@ -25,4 +25,4 @@ carthage: carthage update --no-use-binaries --no-build carthage build --no-skip-current -all: carthage lint test analyze \ No newline at end of file +all: carthage lint test analyze diff --git a/README.md b/README.md index 15346ba3..54e331dc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![CocoaPods](https://img.shields.io/cocoapods/v/PINCache.svg)](http://cocoadocs.org/docsets/PINCache/) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) -[![Build status](https://badge.buildkite.com/03e247305c96c3371f2ff2766e9c8c1efdd5fdb3a7eceaff43.svg?branch=master&style=flat)](https://buildkite.com/pinterest/pincache) +[![Build status](https://github.com/pinterest/PINCache/workflows/ci/badge.svg)](https://github.com/pinterest/PINCache) ## Fast, non-deadlocking parallel object cache for iOS and OS X.