ci: AWS ECS 배포 설정 #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- 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:' |