Skip to content

Commit

Permalink
chore: 빌드 테스트 / 리뷰어 할당 워크플로우
Browse files Browse the repository at this point in the history
  • Loading branch information
h-beeen committed Mar 14, 2024
1 parent e99efc2 commit a5a88b1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/AssignReviewer.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 빌드 테스트 / 리뷰어 할당

on:
pull_request:
types: [opened, synchronize, closed]
branches:
- 'develop'
- 'master'

jobs:
build_and_review_assign:
name: "[CI] Check Build/Testcases and Assign Reviewer"
runs-on: ubuntu-latest

steps:
- name: (Set Up) checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GIT_TOKEN }}
submodules: true

- name: (Set Up) Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: (Set Up) Grant Execute permission for gradlew
run: chmod 777 gradlew

- name: (Build) Build with Gradle
id: build
run: ./gradlew test -i

- name: (Assign Reviewer)
if: steps.build.outcome == 'success'
uses: hkusu/review-assign-action@v1
with:
assignees: ${{ github.actor }}
reviewers: HyungJu, h-beeen
ready-comment: '코드 리뷰 요청합니다 🙆 <reviewers>'
merged-comment: '성공적으로 Merge 되었습니다. Shout out to <reviewers> :wink:'

0 comments on commit a5a88b1

Please sign in to comment.