Skip to content

Commit ea738d2

Browse files
committed
Integrate Danger (#3)
* Integrate `Danger` * Update `ci.yml` * Add `SwiftLint` job in `ci.yml` * Update `CHANGELOG.md`
1 parent 87aa5e1 commit ea738d2

6 files changed

Lines changed: 120 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@ on:
66
- main
77
- dev
88
pull_request:
9-
branches: [ main ]
10-
11-
concurrency:
12-
group: ci
13-
cancel-in-progress: true
9+
paths:
10+
- '.swiftlint.yml'
11+
- ".github/workflows/**"
12+
- "Package.swift"
13+
- "Source/**"
14+
- "Tests/**"
1415

1516
jobs:
17+
SwiftLint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: GitHub Action for SwiftLint
22+
uses: norio-nomura/action-swiftlint@3.2.1
23+
with:
24+
args: --strict
25+
env:
26+
DIFF_BASE: ${{ github.base_ref }}
1627
Latest:
1728
name: Test Latest (iOS, macOS, tvOS, watchOS)
1829
runs-on: macOS-12

.github/workflows/danger.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Danger
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened, labeled, unlabeled, edited]
6+
7+
env:
8+
LC_CTYPE: en_US.UTF-8
9+
LANG: en_US.UTF-8
10+
11+
jobs:
12+
run-danger:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: ruby setup
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: 2.7
19+
bundler-cache: true
20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
- name: Setup gems
23+
run: |
24+
gem install bundler
25+
bundle install --clean --path vendor/bundle
26+
- name: danger
27+
env:
28+
DANGER_GITHUB_API_TOKEN: ${{ secrets.DANGER_GITHUB_API_TOKEN }}
29+
run: bundle exec danger --verbose

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ All notable changes to this project will be documented in this file.
44
## [Unreleased]
55

66
## Added
7+
- Integrate `Danger`
8+
- Added in Pull Request [#2](https://github.com/space-code/atomic/pull/2).
9+
710
- Change the locking mechanism from `DispatchSemaphore` to `unfair_lock_os` and add support for `@dynamicMemberLookup`
8-
- Added in Pull Request [#1](https://github.com/space-code/flare/pull/1).
11+
- Added in Pull Request [#1](https://github.com/space-code/atomic/pull/1).
912

1013
#### 1.x Releases
1114
- `0.0.x` Releases - [0.0.1](#100)
1215

13-
## [0.0.1](https://github.com/space-code/flare/releases/tag/0.0.1)
16+
## [0.0.1](https://github.com/space-code/atomic/releases/tag/0.0.1)
1417
Released on 2023-06-18.
1518

1619
#### Added

Dangerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
danger.import_dangerfile(github: 'space-code/dangerfile')

Gemfile

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

Gemfile.lock

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.8.5)
5+
public_suffix (>= 2.0.2, < 6.0)
6+
base64 (0.1.1)
7+
claide (1.1.0)
8+
claide-plugins (0.9.2)
9+
cork
10+
nap
11+
open4 (~> 1.3)
12+
colored2 (3.1.2)
13+
cork (0.3.0)
14+
colored2 (~> 3.1)
15+
danger (9.3.2)
16+
claide (~> 1.0)
17+
claide-plugins (>= 0.9.2)
18+
colored2 (~> 3.1)
19+
cork (~> 0.1)
20+
faraday (>= 0.9.0, < 3.0)
21+
faraday-http-cache (~> 2.0)
22+
git (~> 1.13)
23+
kramdown (~> 2.3)
24+
kramdown-parser-gfm (~> 1.0)
25+
no_proxy_fix
26+
octokit (~> 6.0)
27+
terminal-table (>= 1, < 4)
28+
faraday (2.7.11)
29+
base64
30+
faraday-net_http (>= 2.0, < 3.1)
31+
ruby2_keywords (>= 0.0.4)
32+
faraday-http-cache (2.5.0)
33+
faraday (>= 0.8)
34+
faraday-net_http (3.0.2)
35+
git (1.18.0)
36+
addressable (~> 2.8)
37+
rchardet (~> 1.8)
38+
kramdown (2.4.0)
39+
rexml
40+
kramdown-parser-gfm (1.1.0)
41+
kramdown (~> 2.0)
42+
nap (1.1.0)
43+
no_proxy_fix (0.1.2)
44+
octokit (6.1.1)
45+
faraday (>= 1, < 3)
46+
sawyer (~> 0.9)
47+
open4 (1.3.4)
48+
public_suffix (5.0.3)
49+
rchardet (1.8.0)
50+
rexml (3.2.6)
51+
ruby2_keywords (0.0.5)
52+
sawyer (0.9.2)
53+
addressable (>= 2.3.5)
54+
faraday (>= 0.17.3, < 3)
55+
terminal-table (3.0.2)
56+
unicode-display_width (>= 1.1.1, < 3)
57+
unicode-display_width (2.5.0)
58+
59+
PLATFORMS
60+
x86_64-darwin-22
61+
62+
DEPENDENCIES
63+
danger
64+
65+
BUNDLED WITH
66+
2.4.21

0 commit comments

Comments
 (0)