[REFACTOR] recent-summary year 기본값 동적화 및 404 엔드포인트 처리 보강 #582
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 TEST | |
| on: | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 저장소 Checkout | |
| uses: actions/checkout@v3 | |
| - name: 자바 17 설정 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Docker 환경 확인 | |
| run: | | |
| docker version | |
| docker info | |
| - name: Testcontainers 이미지 사전 다운로드 | |
| run: docker pull mysql:8.0 | |
| - name: 빌드 (실패 시 1회 재시도) | |
| run: | | |
| set +e | |
| SPRING_PROFILES_ACTIVE=ci ./gradlew test --stacktrace --quiet | |
| first_result=$? | |
| if [ "$first_result" -ne 0 ]; then | |
| echo "첫 번째 테스트 실행 실패. 1회 재시도합니다." | |
| SPRING_PROFILES_ACTIVE=ci ./gradlew test --stacktrace --quiet | |
| second_result=$? | |
| if [ "$second_result" -ne 0 ]; then | |
| exit "$second_result" | |
| fi | |
| fi |