fix: 에러나는 코드 주석처리 #24
This file contains hidden or 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: KTB 해커톤 ZEUSAI PR CI 파이프라인 | |
| on: | |
| pull_request: | |
| branches: [ "develop"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| if: success() | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: 자바 21 설치 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Gradle 캐싱 | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| gradle-${{ runner.os }} | |
| - name: 빌드여부 체크하기 | |
| run: ./gradlew clean -x test build | |
| notify-discord: | |
| runs-on: ubuntu-22.04 | |
| needs: build | |
| if: always() | |
| steps: | |
| - name: Discord 빌드 알림 | |
| uses: sarisia/actions-status-discord@v1 | |
| with: | |
| webhook: ${{ secrets.DISCORD_WEBHOOK_BACK_PR_URL }} | |
| title: "${{ needs.build.result == 'success' && '✅' || '❌' }} 백엔드 새로운 PR이 올라왔습니다!" | |
| description: | | |
| **제목**: ${{ github.event.pull_request.title }} | |
| **작성자**: ${{ github.event.pull_request.user.login }} | |
| **브랜치**: `${{ github.event.pull_request.base.ref }}`←`${{ github.event.pull_request.head.ref }}` | |
| **📊 빌드 결과**: | |
| - 상태: ${{ needs.build.result == 'success' && '성공' || '실패' }} | |
| **🔗 링크**: | |
| - [PR 확인하기](${{ github.event.pull_request.html_url }}) | |
| color: "${{ needs.build.result == 'success' && 65280 || 16711680 }}" | |
| username: GitHub PR Bot | |
| avatar_url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png |