Skip to content

Commit 2b2caf3

Browse files
authored
Merge pull request #14 from polydice/feature/update-gems
Update gems and migrate to GitHub Actions
2 parents b721beb + 7d72e8c commit 2b2caf3

File tree

9 files changed

+198
-132
lines changed

9 files changed

+198
-132
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.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Replace Freddy with Swift Codable [#11](https://github.com/polydice/iCook-tvOS/pull/11)
1212
* Replace Quick and Nimble with XCTest [#12](https://github.com/polydice/iCook-tvOS/pull/12)
1313
* Swift 5 [#13](https://github.com/polydice/iCook-tvOS/pull/13)
14+
* Update gems and migrate to GitHub Actions [#14](https://github.com/polydice/iCook-tvOS/pull/14)
1415

1516
## v1.0.0
1617

0 commit comments

Comments
 (0)