forked from bcylin/Try-tvOS
-
Notifications
You must be signed in to change notification settings - Fork 17
35 lines (33 loc) · 998 Bytes
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: iOS review
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Apply Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '2.x'
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Danger
run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Fetch base ref
run: git fetch --no-tags --prune --depth=1 origin ${{ github.base_ref }}
- name: Run SwiftLint
uses: norio-nomura/[email protected]
with:
args: --force-exclude
env:
DIFF_BASE: origin/${{ github.base_ref }}