Skip to content

Commit e03a9c7

Browse files
committed
Update the Danger job and the Ruby dependencies
1 parent e1e4f12 commit e03a9c7

File tree

2 files changed

+30
-29
lines changed

2 files changed

+30
-29
lines changed

.github/workflows/danger.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
name: Danger
2+
23
on:
34
pull_request:
5+
types: [opened, synchronize, edited]
46
branches:
5-
- stable
7+
- stable
68

79
jobs:
810
Danger:
9-
runs-on: macos-latest
11+
runs-on: ubuntu-18.04
1012
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
13+
- uses: actions/checkout@v1
14+
15+
- uses: ruby/setup-ruby@v1
2016
with:
21-
ruby-version: 2.6
22-
- name: Install Ruby Dependencies
17+
ruby-version: 2.6 # Not needed with a .ruby-version file
18+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
19+
20+
- name: Danger
2321
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
22+
bundle exec danger --fail-on-errors=true
23+
shell: bash
3124
env:
32-
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
25+
DANGER_GITHUB_API_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

Gemfile.lock

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ GEM
1111
colored2 (3.1.2)
1212
cork (0.3.0)
1313
colored2 (~> 3.1)
14-
danger (8.0.5)
14+
danger (8.2.3)
1515
claide (~> 1.0)
1616
claide-plugins (>= 0.9.2)
1717
colored2 (~> 3.1)
@@ -23,16 +23,23 @@ GEM
2323
kramdown-parser-gfm (~> 1.0)
2424
no_proxy_fix
2525
octokit (~> 4.7)
26-
terminal-table (~> 1)
27-
danger-swiftlint (0.24.4)
26+
terminal-table (>= 1, < 4)
27+
danger-swiftlint (0.26.0)
2828
danger
2929
rake (> 10)
3030
thor (~> 0.19)
31-
faraday (1.0.1)
31+
faraday (1.4.1)
32+
faraday-excon (~> 1.1)
33+
faraday-net_http (~> 1.0)
34+
faraday-net_http_persistent (~> 1.1)
3235
multipart-post (>= 1.2, < 3)
36+
ruby2_keywords (>= 0.0.4)
37+
faraday-excon (1.1.0)
3338
faraday-http-cache (2.2.0)
3439
faraday (>= 0.8)
35-
git (1.7.0)
40+
faraday-net_http (1.0.1)
41+
faraday-net_http_persistent (1.1.0)
42+
git (1.8.1)
3643
rchardet (~> 1.8)
3744
kramdown (2.3.1)
3845
rexml
@@ -41,18 +48,19 @@ GEM
4148
multipart-post (2.1.1)
4249
nap (1.1.0)
4350
no_proxy_fix (0.1.2)
44-
octokit (4.18.0)
51+
octokit (4.21.0)
4552
faraday (>= 0.9)
4653
sawyer (~> 0.8.0, >= 0.5.3)
4754
open4 (1.3.4)
4855
public_suffix (4.0.6)
49-
rake (13.0.1)
56+
rake (13.0.3)
5057
rchardet (1.8.0)
5158
rexml (3.2.5)
59+
ruby2_keywords (0.0.4)
5260
sawyer (0.8.2)
5361
addressable (>= 2.3.5)
5462
faraday (> 0.8, < 2.0)
55-
terminal-table (1.8.0)
63+
terminal-table (3.0.0)
5664
unicode-display_width (~> 1.1, >= 1.1.1)
5765
thor (0.20.3)
5866
unicode-display_width (1.7.0)

0 commit comments

Comments
 (0)