Skip to content

Commit d471052

Browse files
authored
Extract Danger CI Job (#283)
1 parent 7266a75 commit d471052

File tree

3 files changed

+22
-21
lines changed

3 files changed

+22
-21
lines changed

.circleci/config.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@ orbs:
55
flutter: circleci/[email protected]
66

77
jobs:
8+
danger:
9+
docker:
10+
- image: circleci/ruby:2.6.4
11+
steps:
12+
- checkout
13+
- run: bundle install
14+
- run: bundle exec danger
15+
816
flutter_tests:
917
docker:
1018
- image: cirrusci/flutter
1119
steps:
1220
- checkout
13-
- run: sudo gem install bundler:2.1.4
14-
- run: bundle check || sudo bundle install
15-
- run: bundle exec danger
1621
- run: flutter doctor
1722
- run: flutter packages get
1823
- run: sh ./scripts/pigeon.sh
@@ -25,9 +30,6 @@ jobs:
2530
- image: cirrusci/flutter:2.10.5
2631
steps:
2732
- checkout
28-
- run: sudo gem install bundler:2.1.4
29-
- run: bundle check || sudo bundle install
30-
- run: bundle exec danger
3133
- run: flutter doctor
3234
- run: flutter packages get
3335
- run: sh ./scripts/pigeon.sh
@@ -150,6 +152,7 @@ workflows:
150152
version: 2
151153
build-test-and-approval-deploy:
152154
jobs:
155+
- danger
153156
- flutter_tests
154157
- flutter_tests_2-10-5
155158
- test_android
@@ -164,6 +167,7 @@ workflows:
164167
- hold_release:
165168
type: approval
166169
requires:
170+
- danger
167171
- flutter_tests
168172
- flutter_tests_2-10-5
169173
- test_android

Gemfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# frozen_string_literal: true
2-
31
source "https://rubygems.org"
42

5-
git_source(:github) {|repo_name| "https://github.com/Instabug/Instabug-Flutter/" }
6-
7-
gem 'danger'
3+
gem 'danger', '~> 8.6', '>= 8.6.1'

Gemfile.lock

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.0)
5-
public_suffix (>= 2.0.2, < 5.0)
4+
addressable (2.8.1)
5+
public_suffix (>= 2.0.2, < 6.0)
66
claide (1.1.0)
77
claide-plugins (0.9.2)
88
cork
@@ -24,7 +24,7 @@ GEM
2424
no_proxy_fix
2525
octokit (~> 4.7)
2626
terminal-table (>= 1, < 4)
27-
faraday (1.10.0)
27+
faraday (1.10.2)
2828
faraday-em_http (~> 1.0)
2929
faraday-em_synchrony (~> 1.0)
3030
faraday-excon (~> 1.1)
@@ -39,7 +39,7 @@ GEM
3939
faraday-em_http (1.0.0)
4040
faraday-em_synchrony (1.0.0)
4141
faraday-excon (1.1.0)
42-
faraday-http-cache (2.4.0)
42+
faraday-http-cache (2.4.1)
4343
faraday (>= 0.8)
4444
faraday-httpclient (1.0.1)
4545
faraday-multipart (1.0.4)
@@ -49,7 +49,8 @@ GEM
4949
faraday-patron (1.0.0)
5050
faraday-rack (1.0.0)
5151
faraday-retry (1.0.3)
52-
git (1.11.0)
52+
git (1.12.0)
53+
addressable (~> 2.8)
5354
rchardet (~> 1.8)
5455
kramdown (2.4.0)
5556
rexml
@@ -58,11 +59,11 @@ GEM
5859
multipart-post (2.2.3)
5960
nap (1.1.0)
6061
no_proxy_fix (0.1.2)
61-
octokit (4.25.0)
62+
octokit (4.25.1)
6263
faraday (>= 1, < 3)
6364
sawyer (~> 0.9)
6465
open4 (1.3.4)
65-
public_suffix (4.0.7)
66+
public_suffix (5.0.0)
6667
rchardet (1.8.0)
6768
rexml (3.2.5)
6869
ruby2_keywords (0.0.5)
@@ -71,13 +72,13 @@ GEM
7172
faraday (>= 0.17.3, < 3)
7273
terminal-table (3.0.2)
7374
unicode-display_width (>= 1.1.1, < 3)
74-
unicode-display_width (2.1.0)
75+
unicode-display_width (2.3.0)
7576

7677
PLATFORMS
7778
ruby
7879

7980
DEPENDENCIES
80-
danger
81+
danger (~> 8.6, >= 8.6.1)
8182

8283
BUNDLED WITH
83-
2.1.4
84+
1.17.2

0 commit comments

Comments
 (0)