Feat/151 refreshtoken blacklist #114
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: Pull Request Test Automation | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| jobs: | |
| code-test: | |
| name: 코드 테스트 | |
| runs-on: ubuntu-latest | |
| env: | |
| SPRING_PROFILES_ACTIVE: ci | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| steps: | |
| - name: 브랜치로 체크아웃 | |
| uses: actions/checkout@v4 | |
| - name: JDK 세팅 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: application-ci.yml 주입 | |
| run: | | |
| mkdir -p src/main/resources | |
| echo "${{ secrets.APPLICATION_YML_CI }}" > src/main/resources/application-ci.yml | |
| - name: 권한 세팅 | |
| run: chmod +x ./gradlew | |
| - name: 테스트 수행 | |
| run: ./gradlew test --no-daemon | |
| - name: Slack 알림 보내기(테스트 실패 시) | |
| if: failure() | |
| uses: slackapi/[email protected] | |
| with: | |
| payload: | | |
| { | |
| "text": "🔴 *CI 테스트 실패 알림*\n리포지토리: `${{ github.repository }}`\n브랜치: `${{ github.ref_name }}`\nPR 번호: `${{ github.event.pull_request.number }}`\nPR 제목: `${{ github.event.pull_request.title }}`\n워크플로우: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.workflow }}>\n실패 커밋: `${{ github.event.pull_request.head.sha }}`" | |
| } |