summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-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