diff options
| author | Sho Sakuma <me@m1sk9.dev> | 2026-02-26 00:20:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-26 00:20:33 +0900 |
| commit | 382ccbc765cd1855d688f60f1235f3f4bfaac9d8 (patch) | |
| tree | 2bb41b90c19cfd3cfbe638f9f8fbd420ab96aa86 /.github/workflows | |
| parent | 56ed04185036635dcfd2763391cd64b8be371b1a (diff) | |
| parent | 70c785eee4c61601ba7fffa17cc8b992b4793491 (diff) | |
| download | LunaticChat-382ccbc765cd1855d688f60f1235f3f4bfaac9d8.tar.gz LunaticChat-382ccbc765cd1855d688f60f1235f3f4bfaac9d8.tar.bz2 LunaticChat-382ccbc765cd1855d688f60f1235f3f4bfaac9d8.zip | |
Merge pull request #119 from m1sk9/feat/codecov-jacoco-integration
feat: add Codecov/Jacoco integration and expand test coverage
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yaml | 22 |
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 |
