summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yaml
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-02-25 22:38:19 +0900
committerSho Sakuma <me@m1sk9.dev>2026-02-25 22:38:44 +0900
commitf4bf20791f4470d3e9b865a53b610b5f277ebb82 (patch)
tree7d0b3f9d3eff87730413290d4436b43ff6146b7a /.github/workflows/ci.yaml
parent56ed04185036635dcfd2763391cd64b8be371b1a (diff)
downloadLunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.tar.gz
LunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.tar.bz2
LunaticChat-f4bf20791f4470d3e9b865a53b610b5f277ebb82.zip
feat: add Codecov/Jacoco integration and expand test coverage
- Add Jacoco plugin to all subprojects with XML report generation - Replace post-test-results.sh with Codecov upload in CI workflow - Add codecov.yml configuration - Add 140 new tests across engine, platform-paper, and platform-velocity Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to '.github/workflows/ci.yaml')
-rw-r--r--.github/workflows/ci.yaml22
1 files changed, 12 insertions, 10 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 2f3a9e8..7ab33b6 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -29,16 +29,18 @@ jobs:
run: ./gradlew ktlintCheck --no-daemon
- name: Run tests
- run: ./gradlew test --no-daemon
- continue-on-error: true
-
- - name: Post test results to PR
- if: github.event_name == 'pull_request' && always()
- env:
- GH_TOKEN: ${{ github.token }}
- GITHUB_REPOSITORY: ${{ github.repository }}
- GITHUB_REF: ${{ github.ref }}
- run: .github/scripts/post-test-results.sh
+ run: ./gradlew test jacocoTestReport --no-daemon
+
+ - name: Upload coverage to Codecov
+ if: always()
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: |
+ engine/build/reports/jacoco/test/jacocoTestReport.xml,
+ platform-paper/build/reports/jacoco/test/jacocoTestReport.xml,
+ platform-velocity/build/reports/jacoco/test/jacocoTestReport.xml
+ fail_ci_if_error: false
- name: Build with shadowJar
run: ./gradlew :platform-paper:shadowJar :platform-velocity:shadowJar --parallel --no-daemon