Skip to content

Commit 5a1c46e

Browse files
Create review-suggest.yml (#49) [skip ci]
* Create review-suggest.yml * Update AddUserUseCase.kt * Update domain/src/main/java/com/hoc/flowmvi/domain/usecase/AddUserUseCase.kt Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent db45532 commit 5a1c46e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/review-suggest.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: reviewdog-suggester
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
jobs:
6+
kotlin:
7+
name: runner / suggester / spotless
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2 # required to compare
11+
with:
12+
ref: master
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-java@v2
15+
with:
16+
distribution: 'zulu'
17+
java-version: '11'
18+
- name: Make gradlew executable
19+
run: chmod +x ./gradlew
20+
- run: ./gradlew spotlessKotlinApply
21+
- uses: reviewdog/action-suggester@v1
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
tool_name: spotless
25+
# Since "reviewdog/action-suggester" using "spotlessKotlinApply" does not work with forked PR,
26+
# perform "spotlessKotlinCheck".
27+
- run: ./gradlew spotlessKotlinCheck
28+
- run: ./gradlew lintDebug

0 commit comments

Comments
 (0)