Skip to content

Commit 23ac738

Browse files
committed
Use bundler to install danger gem
1 parent b401fbb commit 23ac738

File tree

3 files changed

+75
-3
lines changed

3 files changed

+75
-3
lines changed

.github/workflows/danger.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# This workflow runs SwiftLint on all Swift files
2-
3-
name: SwiftLint
1+
name: Danger + SwiftLint
42

53
on:
64
pull_request:
75
paths:
86
- '.github/workflows/danger.yml'
97
- '.swiftlint.yml'
108
- '**/*.swift'
9+
- 'Dangerfile'
10+
- 'Gemfile'
11+
- 'Gemfile.lock'
1112

1213
jobs:
1314
lint_danger:
@@ -17,6 +18,9 @@ jobs:
1718
- name: Checkout PR
1819
uses: actions/checkout@v2
1920

21+
- name: Install bundler and danger gems
22+
run: sudo gem install bundler && bundle install
23+
2024
- name: Run SwiftLint and output to lintreport.json
2125
run: swiftlint lint --quiet --reporter json | tee lintreport.json
2226

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
gem "danger"

Gemfile.lock

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
claide (1.0.3)
7+
claide-plugins (0.9.2)
8+
cork
9+
nap
10+
open4 (~> 1.3)
11+
colored2 (3.1.2)
12+
cork (0.3.0)
13+
colored2 (~> 3.1)
14+
danger (8.2.0)
15+
claide (~> 1.0)
16+
claide-plugins (>= 0.9.2)
17+
colored2 (~> 3.1)
18+
cork (~> 0.1)
19+
faraday (>= 0.9.0, < 2.0)
20+
faraday-http-cache (~> 2.0)
21+
git (~> 1.7)
22+
kramdown (~> 2.3)
23+
kramdown-parser-gfm (~> 1.0)
24+
no_proxy_fix
25+
octokit (~> 4.7)
26+
terminal-table (~> 1)
27+
faraday (1.1.0)
28+
multipart-post (>= 1.2, < 3)
29+
ruby2_keywords
30+
faraday-http-cache (2.2.0)
31+
faraday (>= 0.8)
32+
git (1.7.0)
33+
rchardet (~> 1.8)
34+
kramdown (2.3.0)
35+
rexml
36+
kramdown-parser-gfm (1.1.0)
37+
kramdown (~> 2.0)
38+
multipart-post (2.1.1)
39+
nap (1.1.0)
40+
no_proxy_fix (0.1.2)
41+
octokit (4.19.0)
42+
faraday (>= 0.9)
43+
sawyer (~> 0.8.0, >= 0.5.3)
44+
open4 (1.3.4)
45+
public_suffix (4.0.6)
46+
rchardet (1.8.0)
47+
rexml (3.2.4)
48+
ruby2_keywords (0.0.2)
49+
sawyer (0.8.2)
50+
addressable (>= 2.3.5)
51+
faraday (> 0.8, < 2.0)
52+
terminal-table (1.8.0)
53+
unicode-display_width (~> 1.1, >= 1.1.1)
54+
unicode-display_width (1.7.0)
55+
56+
PLATFORMS
57+
ruby
58+
59+
DEPENDENCIES
60+
danger
61+
62+
BUNDLED WITH
63+
2.1.4

0 commit comments

Comments
 (0)