[Feature] Review 도메인 및 api 패키지 생성 #4
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: 백엔드 CI 테스트 자동화 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| defaults: | |
| run: | |
| working-directory: backend | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| # env: | |
| steps: | |
| - name: 리포지토리를 가져옵니다 | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: JDK 21을 설치합니다 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Gradle 명령 실행을 위한 권한을 부여합니다 | |
| run: chmod +x gradlew | |
| - name: Gradle build를 수행합니다 | |
| run: ./gradlew clean test -Dspring.profiles.active=test | |
| - name: 테스트 결과를 PR에 코멘트로 등록합니다 | |
| uses: EnricoMi/publish-unit-test-result-action@v1 | |
| if: always() | |
| with: | |
| files: '**/build/test-results/test/TEST-*.xml' | |
| - name: 테스트 실패 시, 실패한 코드 라인에 Check 코멘트를 등록합니다 | |
| uses: mikepenz/action-junit-report@v3 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| token: ${{ github.token }} |