You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2022/12/15 17:12:03 UTC

[groovy] branch danielsun/codecov created (now 859c56302b)

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a change to branch danielsun/codecov
in repository https://gitbox.apache.org/repos/asf/groovy.git


      at 859c56302b Enable codecov

This branch includes the following new commits:

     new 859c56302b Enable codecov

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[groovy] 01/01: Enable codecov

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch danielsun/codecov
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 859c56302b3ac49914f1e0903427c7249b01b3b9
Author: Daniel Sun <su...@apache.org>
AuthorDate: Fri Dec 16 01:11:46 2022 +0800

    Enable codecov
---
 .github/workflows/groovy-build-test-19.yml         |  4 +-
 .../groovy-build-test-19.yml => codecov.yml        | 44 +++++++++-------------
 2 files changed, 21 insertions(+), 27 deletions(-)

diff --git a/.github/workflows/groovy-build-test-19.yml b/.github/workflows/groovy-build-test-19.yml
index 86933d0677..00d3a79f64 100644
--- a/.github/workflows/groovy-build-test-19.yml
+++ b/.github/workflows/groovy-build-test-19.yml
@@ -39,5 +39,7 @@ jobs:
           check-latest: true
       - uses: gradle/gradle-build-action@v2
       - name: Test with Gradle
-        run: ./gradlew test -Ptarget.java.home=${{ env.JAVA_HOME_19_X64 }}
+        run: ./gradlew test -Pcoverage=true -Ptarget.java.home=${{ env.JAVA_HOME_19_X64 }}
         timeout-minutes: 60
+      - name: Upload coverage to Codecov
+        uses: codecov/codecov-action@v3
diff --git a/.github/workflows/groovy-build-test-19.yml b/codecov.yml
similarity index 55%
copy from .github/workflows/groovy-build-test-19.yml
copy to codecov.yml
index 86933d0677..ff97f696c8 100644
--- a/.github/workflows/groovy-build-test-19.yml
+++ b/codecov.yml
@@ -13,31 +13,23 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-name: Build and test 19
+codecov:
+  require_ci_to_pass: yes
 
-on: [push, pull_request]
+comment:
+  layout: "reach, diff, flags, files"
+  behavior: default
+  require_changes: false
+  require_base: no
+  require_head: yes
 
-permissions:
-  contents: read
-
-jobs:
-  test:
-    strategy:
-      fail-fast: false
-      matrix:
-        os: [ubuntu-20.04]
-    runs-on: ${{ matrix.os }}
-    steps:
-      - uses: actions/checkout@v3
-      - name: Set up JDKs
-        uses: actions/setup-java@v3
-        with:
-          distribution: 'zulu'
-          java-version: |
-            19
-            17
-          check-latest: true
-      - uses: gradle/gradle-build-action@v2
-      - name: Test with Gradle
-        run: ./gradlew test -Ptarget.java.home=${{ env.JAVA_HOME_19_X64 }}
-        timeout-minutes: 60
+coverage:
+  status:
+    patch:
+      default:
+        target: auto
+        informational: true
+    project:
+      default:
+        target: auto
+        informational: true