Skip to content

Conversation

@Hyobeen-Park
Copy link
Collaborator

@Hyobeen-Park Hyobeen-Park commented Oct 5, 2025

Related issue 🛠

Work Description ✏️

  • 린트 체크용 ci 분리

Screenshot 📸

N/A

Uncompleted Tasks 😅

N/A

To Reviewers 📢

이제 좀 더 빨라지겠지...?

Summary by CodeRabbit

  • Chores
    • PR에서 자동으로 코드 스타일을 점검하는 전용 워크플로우를 추가했습니다.
    • PR 빌드 워크플로우의 이름과 작업명을 정비하여 가독성을 개선했습니다.
    • 빌드 파이프라인에서 중복된 스타일 검사 단계를 제거해 실행 시간을 단축했습니다.
    • 빌드 및 캐시/환경 설정을 최신 JDK로 정렬해 안정성을 높였습니다.

@Hyobeen-Park Hyobeen-Park added this to the 5차 스프린트 milestone Oct 5, 2025
@Hyobeen-Park Hyobeen-Park self-assigned this Oct 5, 2025
@Hyobeen-Park Hyobeen-Park requested a review from a team as a code owner October 5, 2025 20:08
@Hyobeen-Park Hyobeen-Park added MOD✅ 코드 수정 및 내부 파일 수정 ❤️효빈❤️ ❤️효빈❤️ labels Oct 5, 2025
@Hyobeen-Park Hyobeen-Park requested review from Roel4990, angryPodo and chattymin and removed request for a team October 5, 2025 20:08
@coderabbitai
Copy link

coderabbitai bot commented Oct 5, 2025

Walkthrough

PR 분기에서 실행되는 CI를 분리함. 새 ktlint 전용 워크플로우를 추가하고, 기존 PR 빌더 워크플로우에서 린트 단계를 제거해 빌드 전용으로 조정함. JDK 18, Gradle 캐시 설정, local.properties 생성 및 시크릿 주입, ktlintCheck와 빌드 실행 구성을 포함함.

Changes

Cohort / File(s) Summary
CI: ktlint 전용 워크플로우 추가
.github/workflows/ktlint_checker.yml
신규 워크플로우 추가: PR 대상 develop/main에서 트리거, 체크아웃/Gradle 캐시/JDK 18 설정, gradlew 실행권한 부여, local.properties 생성 및 시크릿 주입, ktlintCheck 실행(compileSdkVersion=35 전달).
CI: PR 빌더 조정
.github/workflows/pr_builder.yml
워크플로우/잡명 변경(Spoony pr checker → Spoony pr builder, PR Checker → PR Builder), ktlint 단계 제거, Gradle 빌드 단계 유지.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    actor Dev as Developer
    participant GH as GitHub
    participant Lint as ktlint_checker.yml
    participant Build as pr_builder.yml

    Dev->>GH: Open/Update PR (to develop/main)
    GH-->>Lint: Trigger workflow
    GH-->>Build: Trigger workflow

    rect rgba(200,230,255,0.3)
    note over Lint: ktLint Checker
    Lint->>Lint: Checkout + Gradle cache
    Lint->>Lint: Setup JDK 18
    Lint->>Lint: chmod + generate local.properties<br/>inject secrets
    Lint->>Lint: Run ./gradlew ktlintCheck -PcompileSdkVersion=35
    end

    rect rgba(200,255,200,0.3)
    note over Build: PR Builder
    Build->>Build: Checkout + (existing steps)
    Build->>Build: Build with Gradle
    end

    Lint-->>GH: ktlint status
    Build-->>GH: build status
    GH-->>Dev: Report checks (separate lint/build)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

CHORE🎀

Suggested reviewers

  • chattymin
  • Roel4990

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Title Check ✅ Passed 제목 "[MOD/#408] ci 분리"은 CI 분리라는 주요 변경사항을 간결하게 요약하고 관련 이슈 번호를 포함하여 맥락을 잘 전달합니다.
Linked Issues Check ✅ Passed 변경된 워크플로우 파일은 린트 검사용 CI와 빌드 검사용 CI를 분리 구성하여 #408 이슈의 린트 체크용 및 빌드 체크용 분리 요구사항을 모두 만족합니다.
Out of Scope Changes Check ✅ Passed 추가된 변경은 .github/workflows 디렉터리 내 CI 구성 분리만을 다루고 있어 링크된 이슈와 직접 관련 없는 불필요한 변경이 포함되어 있지 않습니다.
Description Check ✅ Passed PR 설명은 템플릿의 모든 필수 섹션을 포함하고 관련 이슈, 작업 내용, 스크린샷 대체 정보, 미완료 작업 및 리뷰어 안내를 충실히 작성하여 요구사항을 충족합니다.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mod/#408-separate-ci

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ef544e3 and 18870e5.

📒 Files selected for processing (2)
  • .github/workflows/ktlint_checker.yml (1 hunks)
  • .github/workflows/pr_builder.yml (2 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/ktlint_checker.yml

17-17: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


20-20: the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


30-30: the runner of "actions/setup-java@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: PR Builder

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2416212 and ef544e3.

📒 Files selected for processing (2)
  • .github/workflows/ktlint_checker.yml (1 hunks)
  • .github/workflows/pr_checker.yml (0 hunks)
💤 Files with no reviewable changes (1)
  • .github/workflows/pr_checker.yml
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/ktlint_checker.yml

17-17: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


20-20: the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


30-30: the runner of "actions/setup-java@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: ktLint Checker
  • GitHub Check: PR Checker

Comment on lines +17 to +33
uses: actions/checkout@v3

- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: set up JDK 18
uses: actions/setup-java@v3
with:
java-version: 18
distribution: 'temurin'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

GitHub 기본 액션 버전을 v4 이상으로 올려야 합니다.

Line 17, Line 20, Line 30에서 actions/checkout@v3, actions/cache@v3, actions/setup-java@v3를 그대로 사용하면 현재 GitHub Actions 런너(Node 20)에서 곧바로 실패합니다. 각 액션의 v4 릴리스는 Node 20을 지원하므로 반드시 올려 주세요. 기존 pr_checker 흐름도 같은 제약을 받으니 함께 정비하는 편이 안전합니다.

-      - name: Checkout
-        uses: actions/checkout@v3
+      - name: Checkout
+        uses: actions/checkout@v4
...
-      - name: Gradle cache
-        uses: actions/cache@v3
+      - name: Gradle cache
+        uses: actions/cache@v4
...
-      - name: set up JDK 18
-        uses: actions/setup-java@v3
+      - name: set up JDK 18
+        uses: actions/setup-java@v4
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
uses: actions/checkout@v3
- name: Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 18
uses: actions/setup-java@v3
with:
java-version: 18
distribution: 'temurin'
- name: Checkout
uses: actions/checkout@v4
- name: Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: set up JDK 18
uses: actions/setup-java@v4
with:
java-version: 18
distribution: 'temurin'
🧰 Tools
🪛 actionlint (1.7.7)

17-17: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


20-20: the runner of "actions/cache@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)


30-30: the runner of "actions/setup-java@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🤖 Prompt for AI Agents
.github/workflows/ktlint_checker.yml around lines 17 to 33: the workflow uses
actions/checkout@v3, actions/cache@v3 and actions/setup-java@v3 which are
incompatible with the runner's Node 20 — update each referenced action to their
v4 releases (actions/checkout@v4, actions/cache@v4, actions/setup-java@v4) and
ensure any input names unchanged by the major bump are adjusted if necessary;
also mirror the same version updates in the pr_checker workflow to avoid similar
runtime failures.

Copy link
Member

@angryPodo angryPodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿~~🚀

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 네이밍 pr builder는 어때요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오홍 좋은생각

Copy link
Member

@Roel4990 Roel4990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고많으셨습니다!

@Hyobeen-Park Hyobeen-Park merged commit d577e62 into develop Oct 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MOD✅ 코드 수정 및 내부 파일 수정 ❤️효빈❤️ ❤️효빈❤️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MOD] CI 수정

4 participants