Skip to content

Commit cb3ba63

Browse files
committed
Add the Danger workflow
1 parent 9857f39 commit cb3ba63

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/danger.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Danger
2+
on:
3+
pull_request:
4+
branches:
5+
- stable
6+
7+
jobs:
8+
Danger:
9+
runs-on: macos-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Cache Bundle Dependencies
13+
uses: actions/cache@v1
14+
with:
15+
path: vendor/bundle
16+
key: 1-gems-{{ checksum "Gemfile.lock" }}
17+
restore-keys: 1-gems-
18+
- name: Set Ruby Version
19+
uses: actions/setup-ruby@v1
20+
with:
21+
ruby-version: 2.6
22+
- name: Install Ruby Dependencies
23+
run: |
24+
bundle config path vendor/bundle
25+
bundle check || bundle install
26+
env:
27+
BUNDLE_JOBS: 4
28+
BUNDLE_RETRY: 3
29+
- name: Running Danger
30+
run: bundle exec danger
31+
env:
32+
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}

0 commit comments

Comments
 (0)