Skip to content

Commit 7af09ed

Browse files
committed
chore: update ci workflows
1 parent 01e1152 commit 7af09ed

4 files changed

Lines changed: 41 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ jobs:
1515
java-version: '21'
1616
cache: gradle
1717
- run: ./gradlew --no-daemon clean build jacocoTestReport
18-
- name: Upload build artifacts
18+
- name: Upload test reports
1919
uses: actions/upload-artifact@v4
2020
with:
21-
name: sprout-snapshot-${{ github.sha }}
21+
name: test-reports-${{ github.sha }}
2222
path: |
23-
build/libs/*.jar
2423
build/reports/tests/test/**
2524
build/reports/jacoco/test/html/**
26-
retention-days: 14
25+
retention-days: 7

.github/workflows/pages.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,44 @@ jobs:
1919
distribution: temurin
2020
java-version: '21'
2121
cache: gradle
22-
- run: ./gradlew --no-daemon test jacocoTestReport javadoc
22+
- run: ./gradlew --no-daemon test jacocoTestReport
2323
- name: Prepare site
2424
run: |
2525
mkdir -p site
2626
cp -r build/reports/tests/test site/tests
2727
cp -r build/reports/jacoco/test/html site/coverage
28-
cp -r build/docs/javadoc site/javadoc
29-
echo '<meta http-equiv="refresh" content="0; url=coverage/index.html" />' > site/index.html
28+
cat > site/index.html << 'EOF'
29+
<!DOCTYPE html>
30+
<html>
31+
<head>
32+
<title>Sprout Test Reports</title>
33+
<style>
34+
body { font-family: Arial, sans-serif; margin: 40px; }
35+
.container { max-width: 800px; margin: 0 auto; }
36+
.card { border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin: 20px 0; }
37+
.card h2 { margin-top: 0; color: #333; }
38+
.card p { color: #666; }
39+
.card a { display: inline-block; background: #007cba; color: white; padding: 10px 20px; text-decoration: none; border-radius: 4px; margin-top: 10px; }
40+
.card a:hover { background: #005a87; }
41+
</style>
42+
</head>
43+
<body>
44+
<div class="container">
45+
<h1>🌱 Sprout Framework - Test Reports</h1>
46+
<div class="card">
47+
<h2>📊 Test Coverage Report</h2>
48+
<p>JaCoCo 테스트 커버리지 리포트를 확인할 수 있습니다.</p>
49+
<a href="coverage/index.html">Coverage Report 보기</a>
50+
</div>
51+
<div class="card">
52+
<h2>🧪 Test Results</h2>
53+
<p>단위 테스트 실행 결과와 상세 정보를 확인할 수 있습니다.</p>
54+
<a href="tests/index.html">Test Results 보기</a>
55+
</div>
56+
</div>
57+
</body>
58+
</html>
59+
EOF
3060
- uses: actions/upload-pages-artifact@v3
3161
with:
3262
path: site

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ public class ChatSocket {
167167

168168
## 🧪 Testing
169169

170-
**Reports:** [Tests](https://<your-username>.github.io/sprout/tests/) ·
171-
[Coverage](https://<your-username>.github.io/sprout/coverage/)
170+
**Reports:** [Tests](https://yyubin.github.io/sprout/tests/) ·
171+
[Coverage](https://yyubin.github.io/sprout/coverage/)
172172

173173
**575 tests, 0 failures (100% pass, Gradle 8.10.1 · 2025‑09‑23)**
174174

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies {
2020
// Test dependencies
2121
testImplementation 'org.mockito:mockito-core:5.4.0'
2222
testImplementation 'org.mockito:mockito-junit-jupiter:5.4.0'
23-
testImplementation 'org.mockito:mockito-inline:5.4.0'
23+
// testImplementation 'org.mockito:mockito-inline:5.4.0'
2424
testImplementation platform('org.junit:junit-bom:5.10.0')
2525
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
2626
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.0'
@@ -97,7 +97,8 @@ jacocoTestReport {
9797
fileTree(dir: it, exclude: [
9898
'**/*Exception.class',
9999
'**/exception/**',
100-
'**/app/**'
100+
'**/app/**',
101+
'**/data/**',
101102
])
102103
}))
103104
}

0 commit comments

Comments
 (0)