File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches : [dev, main]
6+ push :
7+ branches : [dev, main]
8+
9+ # 같은 PR에 커밋을 연달아 푸시하면 이전 실행을 취소 (러너 시간 절약)
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ test :
16+ runs-on : ubuntu-latest
17+ timeout-minutes : 15
18+
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+
23+ - name : Set up JDK 17
24+ uses : actions/setup-java@v4
25+ with :
26+ distribution : temurin
27+ java-version : ' 17'
28+
29+ # Gradle 의존성·빌드 캐시 자동 관리 (두 번째 실행부터 빨라짐)
30+ - name : Set up Gradle
31+ uses : gradle/actions/setup-gradle@v4
32+
33+ - name : Run tests
34+ run : ./gradlew test
35+ # ubuntu-latest 러너는 Docker 기본 탑재 → Testcontainers E2E가 그대로 동작
36+
37+ # 실패 시 테스트 리포트를 아티팩트로 업로드 (Actions 탭에서 다운로드해 원인 확인)
38+ - name : Upload test report
39+ if : failure()
40+ uses : actions/upload-artifact@v4
41+ with :
42+ name : test-report
43+ path : build/reports/tests/test/
44+ retention-days : 7
You can’t perform that action at this time.
0 commit comments