File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI Workflow
2+
3+ on :
4+ push :
5+ branches :
6+ - main # main 브랜치
7+ - develop # develop 브랜치
8+ - feature/* # 모든 feature/* 브랜치
9+ pull_request :
10+ branches :
11+ - main # main 브랜치로의 PR
12+ - develop # develop 브랜치로의 PR
13+ - feature/* # feature/* 브랜치로의 PR
14+
15+ jobs :
16+ build-and-test :
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ # 1. 리포지토리 체크아웃
21+ - name : Check out repository
22+ uses : actions/checkout@v3
23+
24+ # 2. JDK 23 설정
25+ - name : Set up JDK 23
26+ uses : actions/setup-java@v3
27+ with :
28+ distribution : temurin
29+ java-version : ' 23'
30+
31+ # 3. Gradle 캐시 적용
32+ - name : Cache Gradle packages
33+ uses : actions/cache@v3
34+ with :
35+ path : |
36+ ~/.gradle/caches
37+ ~/.gradle/wrapper
38+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
39+ restore-keys : |
40+ ${{ runner.os }}-gradle-
41+
42+ # 4. dev.sh 실행 (환경 변수 로드 및 빌드 준비)
43+ - name : Run dev.sh
44+ run : |
45+ chmod +x ./dev.sh # dev.sh에 실행 권한 부여
46+ ./dev.sh # dev.sh 실행
47+
48+ # 5. Gradle 빌드 및 테스트 실행
49+ - name : Build and Test (Gradle)
50+ run : |
51+ ./gradlew clean build -x test
52+ ./gradlew test
You can’t perform that action at this time.
0 commit comments