diff --git a/.github/workflows/ci-jdk11.yml b/.github/workflows/ci-jdk11.yml index e5878aaa2..8bf1f973c 100644 --- a/.github/workflows/ci-jdk11.yml +++ b/.github/workflows/ci-jdk11.yml @@ -80,3 +80,11 @@ jobs: test_modules="!geaflow/geaflow-dsl/geaflow-dsl-connector/geaflow-dsl-connector-hive," test_modules+="!geaflow/geaflow-dsl/geaflow-dsl-connector-tests" mvn -B -e clean test -Pjdk11 -pl "${test_modules}" -Duser.timezone=Asia/Shanghai -Dlog4j.configuration="log4j.rootLogger=WARN, stdout" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: "**/target/site/jacoco/jacoco.xml" + fail_ci_if_error: false + verbose: true diff --git a/README.md b/README.md index bd5f9de27..6a79aa28c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![License](https://shields.io/github/license/apache/geaflow?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://shields.io/github/v/release/apache/geaflow.svg?logo=stackblitz&label=Version&color=red)](https://github.com/apache/geaflow/releases) [![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/) +[![Codecov](https://codecov.io/gh/apache/geaflow/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/geaflow) > 🌐️ English | [中文](README_cn.md) diff --git a/README_cn.md b/README_cn.md index cac33f368..2e48b3f21 100644 --- a/README_cn.md +++ b/README_cn.md @@ -6,6 +6,7 @@ [![License](https://shields.io/github/license/apache/geaflow?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://shields.io/github/v/release/apache/geaflow.svg?logo=stackblitz&label=Version&color=red)](https://github.com/apache/geaflow/releases) [![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/) +[![Codecov](https://codecov.io/gh/apache/geaflow/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/geaflow) > 🌐️ 中文 | [English](README.md) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..7a4c8a0e0 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,43 @@ +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +################################################################################ + +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + threshold: 1% + +ignore: + - "**/*Test.java" + - "**/*Tests.java" + - "**/test/**" + - "geaflow/geaflow-examples/**" + - "geaflow-console/**" + - "geaflow/geaflow-dashboard/**" + - "docs/**" + +comment: + layout: "reach,diff,flags,files" + behavior: default + require_changes: false