Skip to content

Commit a202b59

Browse files
authored
Setup Danger with Github Actions (#298)
1 parent d9e9442 commit a202b59

File tree

3 files changed

+42
-30
lines changed

3 files changed

+42
-30
lines changed

.github/workflows/swift.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,23 @@ on:
99
- master
1010

1111
jobs:
12-
1312
DANGER:
1413
runs-on: ubuntu-latest
15-
name: "Run Danger"
1614
steps:
17-
- uses: actions/[email protected]
18-
- name: Danger
19-
uses: danger/[email protected]
20-
with:
21-
args: --failOnErrors --no-publish-check
15+
- uses: actions/[email protected]
16+
- name: Setup Ruby
17+
uses: actions/setup-ruby@v1
18+
with:
19+
ruby-version: 2.7
20+
- name: Install blunder and install deps.
21+
run: |
22+
gem install bundler
23+
bundle install --jobs 4 --retry 3
24+
- name: Run danger
25+
run: |
26+
bundle exec danger
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2229

2330
SPM:
2431

Dangerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ swiftlint.lint_files
6868

6969
# Run prose
7070
prose.ignored_words = ["SPM", "CFBundleVersion", "JobInfo", "compactMap", "lastError", "args", "enum", "SwiftQueue", "JobBuilder", "SwiftQueueManager", "onError", "carthage", "Rechability", "Cleanup", "TimeInterval", "SingleInstance", "Swiftlint", "travis", "params", "JobCompletion", "inSecond", "onRetry", "onRemove", "UniqueUUID", "OperationQueue", "SwiftQueueJob", "uuid", "DEPS", "serializer", "deserialization", "Deserialize"]
71-
prose.ignore_numbers = true
72-
prose.check_spelling
71+
# prose.ignore_numbers = true
72+
# prose.check_spelling

Gemfile.lock

+26-21
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,63 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
5-
public_suffix (>= 2.0.2, < 4.0)
6-
claide (1.0.2)
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
6+
claide (1.0.3)
77
claide-plugins (0.9.2)
88
cork
99
nap
1010
open4 (~> 1.3)
1111
colored2 (3.1.2)
1212
cork (0.3.0)
1313
colored2 (~> 3.1)
14-
danger (6.0.1)
14+
danger (7.0.1)
1515
claide (~> 1.0)
1616
claide-plugins (>= 0.9.2)
1717
colored2 (~> 3.1)
1818
cork (~> 0.1)
19-
faraday (~> 0.9)
20-
faraday-http-cache (~> 1.0)
21-
git (~> 1.5)
19+
faraday (>= 0.9.0, < 2.0)
20+
faraday-http-cache (~> 2.0)
21+
git (~> 1.7)
2222
kramdown (~> 2.0)
2323
kramdown-parser-gfm (~> 1.0)
2424
no_proxy_fix
2525
octokit (~> 4.7)
2626
terminal-table (~> 1)
2727
danger-prose (2.0.7)
2828
danger
29-
danger-swiftlint (0.20.1)
29+
danger-swiftlint (0.24.2)
3030
danger
3131
rake (> 10)
3232
thor (~> 0.19)
33-
faraday (0.15.4)
33+
faraday (1.0.1)
3434
multipart-post (>= 1.2, < 3)
35-
faraday-http-cache (1.3.1)
36-
faraday (~> 0.8)
37-
git (1.5.0)
38-
kramdown (2.1.0)
39-
kramdown-parser-gfm (1.0.1)
35+
faraday-http-cache (2.2.0)
36+
faraday (>= 0.8)
37+
git (1.7.0)
38+
rchardet (~> 1.8)
39+
kramdown (2.2.1)
40+
rexml
41+
kramdown-parser-gfm (1.1.0)
4042
kramdown (~> 2.0)
41-
multipart-post (2.0.0)
43+
multipart-post (2.1.1)
4244
nap (1.1.0)
4345
no_proxy_fix (0.1.2)
44-
octokit (4.13.0)
46+
octokit (4.18.0)
47+
faraday (>= 0.9)
4548
sawyer (~> 0.8.0, >= 0.5.3)
4649
open4 (1.3.4)
47-
public_suffix (3.0.3)
50+
public_suffix (4.0.4)
4851
rake (13.0.1)
49-
sawyer (0.8.1)
50-
addressable (>= 2.3.5, < 2.6)
51-
faraday (~> 0.8, < 1.0)
52+
rchardet (1.8.0)
53+
rexml (3.2.4)
54+
sawyer (0.8.2)
55+
addressable (>= 2.3.5)
56+
faraday (> 0.8, < 2.0)
5257
terminal-table (1.8.0)
5358
unicode-display_width (~> 1.1, >= 1.1.1)
5459
thor (0.20.3)
55-
unicode-display_width (1.5.0)
60+
unicode-display_width (1.7.0)
5661

5762
PLATFORMS
5863
ruby

0 commit comments

Comments
 (0)