diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26e1c075..3171cd43 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ on: jobs: check-lint: name: Lint - timeout-minutes: 5 + timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Fetch Sources @@ -66,7 +66,9 @@ jobs: key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} - name: Run tests run: ./gradlew --no-daemon clean jacocoTestReport - - name: Report test coverage - run: | - pip install --user codecov - codecov + - name: Upload code coverage + uses: codecov/codecov-action@v4 + with: + # Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129 + fail_ci_if_error: false + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/build.gradle b/build.gradle index 57f5e407..783c39f0 100644 --- a/build.gradle +++ b/build.gradle @@ -2,6 +2,7 @@ buildscript { ext.kotlin_version = "1.9.20" ext.jacocoVersion = '0.8.12' ext.spotlessVersion = '6.25.0' + repositories { google() mavenCentral() diff --git a/parse/build.gradle b/parse/build.gradle index a686079b..6fe02967 100644 --- a/parse/build.gradle +++ b/parse/build.gradle @@ -89,6 +89,7 @@ afterEvaluate { } //endregion +//region Testing tasks.withType(JacocoReport).configureEach { jacoco.toolVersion = rootProject.ext.jacocoVersion @@ -102,3 +103,5 @@ tasks.withType(JacocoReport).configureEach { tasks.withType(Test).configureEach { useJUnitPlatform() } + +//endregion