From f1501de0e1debb64349ab134e537196da68f5a9f Mon Sep 17 00:00:00 2001 From: Paul Fleiner Date: Thu, 20 Aug 2020 09:50:37 -0400 Subject: [PATCH] Uses GH actions for CI --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ce1962e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [master] +jobs: + test: + runs-on: macos-latest + steps: + - name: Clone Repo + uses: actions/checkout@v1 + - name: Gem Cache + uses: actions/cache@v1 + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gem- + - name: Cocoapod Cache + uses: actions/cache@v1 + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Bundle Install + run: bundle --path vendor/bundle + - name: Pod Install + run: | + bundle exec pod install + - name: Run Unit Tests + run: | + bundle exec fastlane test scheme:"UnitTests" + - name: Run Integration Tests + run: | + bundle exec fastlane test scheme:"IntegrationTests"