Skip to content

Commit

Permalink
Merge 6a1a578 into 7bf824d
Browse files Browse the repository at this point in the history
  • Loading branch information
paultopher committed Aug 20, 2020
2 parents 7bf824d + 6a1a578 commit daa3e25
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,62 @@
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 Tests
run: |
bundle exec fastlane test scheme:"UnitTests"
bundle exec fastlane test scheme:"IntegrationTests"
coverage:
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: Generate Coverage
run: |
bundle exec fastlane coverage

0 comments on commit daa3e25

Please sign in to comment.