[feat] 데이트 코스 수정 및 삭제 기능 구현 #20
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - dev | |
| - main | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| - closed | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| checkstyle: | |
| name: checkstyle | |
| if: github.event.action != 'closed' || github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| cache: gradle | |
| - name: Grant execute permission for Gradle wrapper | |
| run: chmod +x ./gradlew | |
| - name: Run Checkstyle | |
| run: ./gradlew checkstyleMain checkstyleTest --no-daemon | |
| - name: Upload Checkstyle reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: checkstyle-report | |
| path: | | |
| build/reports/checkstyle | |
| if-no-files-found: warn | |
| build-and-test: | |
| name: build-and-test | |
| if: github.event.action != 'closed' || github.event.pull_request.merged == true | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| cache: gradle | |
| - name: Grant execute permission for Gradle wrapper | |
| run: chmod +x ./gradlew | |
| - name: Gradle build (compile, test, bootJar; Checkstyle excluded) | |
| run: ./gradlew build -x checkstyleMain -x checkstyleTest --no-daemon | |
| - name: Upload build and test reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-and-test-report | |
| path: | | |
| build/reports/tests/test | |
| build/test-results/test | |
| build/libs | |
| if-no-files-found: warn |