Skip to content

Commit 5b93a0b

Browse files
committed
Try GitHub Actions
1 parent 6c9b562 commit 5b93a0b

File tree

3 files changed

+71
-23
lines changed

3 files changed

+71
-23
lines changed

.github/workflows/pull_request.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: iOS review
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Apply Ruby
11+
uses: actions/setup-ruby@v1
12+
with:
13+
ruby-version: '2.x'
14+
- uses: actions/cache@v1
15+
with:
16+
path: vendor/bundle
17+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
18+
restore-keys: |
19+
${{ runner.os }}-gems-
20+
- name: Bundle install
21+
run: |
22+
bundle config path vendor/bundle
23+
bundle install --jobs 4 --retry 3
24+
- name: Run Danger
25+
run: bundle exec danger
26+
env:
27+
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Fetch base ref
29+
run: git fetch --no-tags --prune --depth=1 origin ${{ github.base_ref }}
30+
- name: Run SwiftLint
31+
uses: norio-nomura/[email protected]
32+
with:
33+
args: --force-exclude
34+
env:
35+
DIFF_BASE: origin/${{ github.base_ref }}

.github/workflows/push.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: iOS build
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: macos-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Apply Ruby
11+
uses: actions/setup-ruby@v1
12+
with:
13+
ruby-version: '2.x'
14+
- uses: actions/cache@v1
15+
with:
16+
path: vendor/bundle
17+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
18+
restore-keys: |
19+
${{ runner.os }}-gems-
20+
- uses: actions/cache@v1
21+
with:
22+
path: Pods
23+
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
24+
restore-keys: |
25+
${{ runner.os }}-pods-
26+
- name: Install and setup
27+
run: |
28+
bundle config path vendor/bundle
29+
make bootstrap
30+
- name: Run Fastlane Build
31+
run: |
32+
xcrun instruments -s devices
33+
xcrun instruments -w "Apple TV (13.3)" || true
34+
bundle exec fastlane scan --device "Apple TV (13.3)"
35+
- name: Send coverage to Codecov
36+
run: bash <(curl -s https://codecov.io/bash)

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)