[REFACOTR] 레포 등록시 깃허브 웹훅 등록 과정에서 403에러를 애플리케이션 에러로 전환 #142
Workflow file for this run
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: dev-ci | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| env: | |
| TEST_REPORT: true #jacoco test report 를 위한 환경변수 설정 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 23 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '23' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Grant Permission | |
| run: chmod +x ./gradlew | |
| - name: Clean And Test With Gradle With CI Profile | |
| run: ./gradlew clean test -Dspring.profiles.active=ci | |
| - name: Publish Test Results | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| if: always() | |
| with: | |
| files: ${{ github.workspace }}/build/test-results/**/*.xml | |
| - name: JUnit Report Action | |
| uses: mikepenz/action-junit-report@v4 | |
| if: always() | |
| with: | |
| report_paths: ${{ github.workspace }}/build/test-results/**/*.xml | |
| - name: Report test Coverage to PR | |
| id: jacoco | |
| uses: madrapps/[email protected] | |
| if: always() | |
| with: | |
| title: 📝 Test Coverage Report | |
| paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| min-coverage-overall: 70 | |
| min-coverage-changed-files: 70 | |
| update-comment: true | |
| debug-mode: true |