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
2+ on :
3+ pull_request :
4+ types : [opened, synchronize]
5+ branches : [develop, main]
6+ paths :
7+ - ['backend/**', '.github/**']
8+
9+ defaults :
10+ run :
11+ working-directory : backend
12+
13+ jobs :
14+ build-and-test :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Repository를 가져온다
18+ uses : actions/checkout@v4
19+
20+ - name : JDK 버전 17을 설치한다
21+ uses : actions/setup-java@v4
22+ with :
23+ distribution : ' temurin'
24+ java-version : ' 17'
25+
26+ - name : gradle 의존성을 캐싱한다
27+ uses : actions/cache@v4
28+ with :
29+ path : |
30+ ~/.gradle/caches
31+ ~/.gradle/wrapper
32+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+ restore-keys : |
34+ ${{ runner.os }}-gradle-
35+
36+ - name : gradlew 실행 권한을 부여한다
37+ run : chmod +x gradlew
38+
39+ - name : gradle을 빌드한다
40+ run : ./gradlew build
41+
42+ - name : 테스트 코드 실행 결과 리포트를 작성한다
43+ uses : EnricoMi/publish-unit-test-result-action@v2
44+ if : always()
45+ with :
46+ files : backend/build/test-results/test/TEST-*.xml
47+
48+ - name : 테스트가 실패한 PR 코멘트를 등록한다
49+ uses : mikepenz/action-junit-report@v5
50+ if : always()
51+ with :
52+ report_paths : backend/build/test-results/test/TEST-*.xml
You can’t perform that action at this time.
0 commit comments