From 49ba2622c89c4794ee978246e0cabbab93866d29 Mon Sep 17 00:00:00 2001 From: Haebin Date: Fri, 15 Mar 2024 02:14:03 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B9=8C=EB=93=9C=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20/=20=EB=A6=AC=EB=B7=B0=EC=96=B4=20?= =?UTF-8?q?=ED=95=A0=EB=8B=B9=20=EC=9B=8C=ED=81=AC=ED=94=8C=EB=A1=9C?= =?UTF-8?q?=EC=9A=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CI.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..0a51abc --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,41 @@ +name: 빌드 테스트 / 리뷰어 할당 + +on: + pull_request: + 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: '코드 리뷰 요청합니다 🙆 ' + merged-comment: '성공적으로 Merge 되었습니다. Shout out to :wink:'